ash busy waiting for imaginary child processes

Denys Vlasenko vda.linux at googlemail.com
Sun Oct 7 17:57:29 UTC 2007


On Saturday 06 October 2007 14:31, Andreas Bühmann wrote:
> Hello,
> 
> there seems to be a problem in the job management of ash (testet with
> busybox 1.7.2 and SVN revision #20187). Please try this:
> 
> sleep 1 &
> { sleep 2; jobs; wait; echo done; } &
> 
> This prints "[1] + Running" despite the process created in line 2 not
> having any child processes when "jobs" gets executed. The subsequent
> "wait" then consumes 100% cpu waiting for this non-existing job to finish.
> 
> After having taken a quick look into the code, I suspect this behavior
> to be connected with change #19092 (ash: make "jobs | cat" work like in
> bash (was giving empty output)) but I don't know enough about the job
> management to examine this more closely.

Yes, it is caused by that change. Reverting. Thanks.
--
vda



More information about the busybox mailing list