kill process but fail

Posted by Tim on Super User See other posts from Super User or by Tim
Published on 2010-01-04T19:02:47Z Indexed on 2010/03/17 19:01 UTC
Read the original article Hit count: 455

Filed under:
|

Hi,

I am running a bash script as a background job. The bash script calls a time-consuming executable. If I am not wrong, the running of the bash script is the parent process and the running of the executable is the child process.

I now want to stop the whole running by killing the parent process which is the background job

kill -9 $(jobs -p)

The terminal shows that the running of the bash script is killed. But the running of the executable still hangs on the output of top. I just wonder how to also kill the child process?

Thanks and regards!

© Super User or respective owner

Related posts about kill

Related posts about process