Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: killing suspended jobs makes zsh hang after 47d1215



On Jun 12,  8:40am, Pan Tsu wrote:
} Subject: killing suspended jobs makes zsh hang after 47d1215
}
}   % man man
}   ^Z
}   zsh: suspended  man man
}   % kill %
}   % %
}   [1]  + continued  man man
}   load: 0.04  cmd: zsh 47317 [pause] 222.05r 0.01u 0.00s 0% 2612k

I am able to reproduce this.

kill -CLD wakes up the shell, showing this:

torch% jobs
[1]  + running    man man
torch% 

The bug appears to have been introduced here:

----------------------------
revision 1.80
date: 2011/04/01 11:02:16;  author: pws;  state: Exp;  lines: +18 -1
Stef van Vlierberghe: 28965 (as posted in 28967):
findproc() should not return processes not marked as SP_RUNNING
----------------------------

Evidently there are in fact cases where we need to find jobs that are
not running.

-- 



Messages sorted by: Reverse Date, Date, Thread, Author