Change it to "kill -s TERM".
Change-Id: Ib5f5a3042d082a5b82018078b17ca82a269b4592
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1076
Tested-by: Hudson
Reviewed-by: Jinshan Xiong <jay@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
ps -ef | grep mount
# "ctrl-c" sends SIGINT but it usually (in script) does not work on child process
# SIGTERM works but it does not spread to offspring processses
ps -ef | grep mount
# "ctrl-c" sends SIGINT but it usually (in script) does not work on child process
# SIGTERM works but it does not spread to offspring processses
- kill -s SIGTERM $MOUNT_PID
- kill -s SIGTERM $MOUNT_LUSTRE_PID
+ kill -s TERM $MOUNT_PID
+ kill -s TERM $MOUNT_LUSTRE_PID
# we can not wait $MOUNT_PID because it is not a child of this shell
local PID1
local PID2
# we can not wait $MOUNT_PID because it is not a child of this shell
local PID1
local PID2