From 90d152fcff21f2795a4ec4dc24ca19e585ffd327 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 15 Mar 2013 22:52:16 +0100 Subject: [PATCH] gsmd: Simplify killing of the children Kill the entire process group by sending it to pid 0. Found while searching for better exec examples. --- recipes-openmoko/openmoko-gsmd/files/gsmd-respawn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-openmoko/openmoko-gsmd/files/gsmd-respawn.sh b/recipes-openmoko/openmoko-gsmd/files/gsmd-respawn.sh index 3714d2e9ed..b1fe134326 100644 --- a/recipes-openmoko/openmoko-gsmd/files/gsmd-respawn.sh +++ b/recipes-openmoko/openmoko-gsmd/files/gsmd-respawn.sh @@ -5,7 +5,7 @@ PIDFILE="/var/run/$NAME.pid" PID=$$ echo "$PID" > $PIDFILE -trap "{ rm -f $PIDFILE ; killall -9 $NAME; }" EXIT +trap "{ rm -f $PIDFILE ; kill 0; }" EXIT while true; do