Whamcloud - gitweb
LU-346 "kill -s SIGTERM" does not work on some system
authorBobi Jam <bobijam@whamcloud.com>
Sat, 9 Jul 2011 04:59:54 +0000 (12:59 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 Jul 2011 17:13:22 +0000 (10:13 -0700)
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>
lustre/tests/conf-sanity.sh

index d9fe526..fd30426 100644 (file)
@@ -786,8 +786,8 @@ test_23a() {        # was test_23
        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