Re: bin/113860: sh(1): shell is still running when using `sh -c'

2009-04-12 Thread Jilles Tjoelker
On Fri, Apr 03, 2009 at 11:39:05PM +0200, Jilles Tjoelker wrote: > I think this can be improved. I have a patch now; it does not handle all cases but the effect on the code is minimal. I decided to go with the readahead but only do it for the first line. To avoid problems with traps not being exe

Re: bin/113860: sh(1): shell is still running when using `sh -c'

2009-04-03 Thread Jilles Tjoelker
I think this can be improved. Given that I've been digging in /bin/sh already... Note first that sh already has some of this functionality: % sh -c '{ echo a; sleep 10;}&'; sleep 1; ps T a PID TT STAT TIME COMMAND 94682 p9 Ss 0:00.07 zsh 94702 p9 S 0:00.00 sleep 10 94704 p