|
From: | Ion Savin |
Subject: | [Help-bash] `eval' subprocess not terminated |
Date: | Thu, 06 Feb 2014 01:00:47 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Hi,I'm launching a script which is using `eval' to start a long running process (just as an example I'll use xeyes):
$ cat test.sh #!/bin/bash eval xeyes $ ./test.sh From another terminal I kill the shell process: $ kill -9 `ps h --format pid -C "test.sh"`The shell process terminates but the child process is not killed. Is there any way to force bash (I'm using ver. 4.2.45) to terminate the `eval' subprocesses it has created?
Thanks, Ion
[Prev in Thread] | Current Thread | [Next in Thread] |