usttrace: use short signal names for busybox compatibility
authorJason Wessel <jason.wessel@windriver.com>
Tue, 22 Feb 2011 22:37:25 +0000 (17:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 22 Feb 2011 22:37:25 +0000 (17:37 -0500)
The kill command in coreutils will accept the short signal name, but
various versions of busybox will not accept the long signal name.  For
compatibility with busybox use the short signal name.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
usttrace

index 54266db2cf432bcbaa1b8feef466e0c965d834cc..d7c5977c5e7493d601d621beac989118bf480a6d 100755 (executable)
--- a/usttrace
+++ b/usttrace
@@ -13,7 +13,7 @@ sighandler() {
                UST_CONSUMERD_PID=`cat $pidfilepath`
        fi
        # Tell the daemon to die
                UST_CONSUMERD_PID=`cat $pidfilepath`
        fi
        # Tell the daemon to die
-       kill -SIGTERM "${UST_CONSUMERD_PID}"
+       kill -TERM "${UST_CONSUMERD_PID}"
 
        echo "Waiting for ust-consumerd to shutdown..."
        wait "${UST_CONSUMERD_PID}"
 
        echo "Waiting for ust-consumerd to shutdown..."
        wait "${UST_CONSUMERD_PID}"
@@ -206,7 +206,7 @@ fi
 if [ "$arg_syswide_daemon" != "1" ];
 then
        # Tell the daemon to die
 if [ "$arg_syswide_daemon" != "1" ];
 then
        # Tell the daemon to die
-       kill -SIGTERM "${UST_CONSUMERD_PID}"
+       kill -TERM "${UST_CONSUMERD_PID}"
 
        echo "Waiting for ust-consumerd to shutdown..."
        wait "${UST_CONSUMERD_PID}"
 
        echo "Waiting for ust-consumerd to shutdown..."
        wait "${UST_CONSUMERD_PID}"
This page took 0.023893 seconds and 4 git commands to generate.