in reply to Re: Stopping subprocesses
in thread Stopping subprocesses

My attempt at the negative PID didn't work. The complaint was "Bad signal number". What did you mean by the negative PID? IS that the negative of the PID of B?

Replies are listed 'Best First'.
Re^3: Stopping subprocesses
by ikegami (Patriarch) on Aug 24, 2010 at 15:40 UTC

    My attempt at the negative PID didn't work. The complaint was "Bad signal number".

    Your negative pid was taken to be the signal number. Explicitly specify the signal and you should be ok

    $ perl -esleep & [1] 3298 $ kill -3298 bash: kill: 3298: invalid signal specification $ kill -KILL -3298 $ [1]+ Killed perl -esleep