Don't use killall to HUP browser-switchboard
authorSteven Luo <steven+maemo@steven676.net>
Fri, 18 Dec 2009 12:50:12 +0000 (04:50 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Fri, 18 Dec 2009 12:50:12 +0000 (04:50 -0800)
Use kill and pidof instead -- killall might kill a standalone config app.

config-ui/browser-switchboard-cp.c

index 1099890..7d462f5 100644 (file)
@@ -263,7 +263,7 @@ static void do_reconfig(void) {
        /* Try to send SIGHUP to any running browser-switchboard process
           This causes it to reread config files if in continuous_mode, and
           die so that the config will be reloaded on next start otherwise */
        /* Try to send SIGHUP to any running browser-switchboard process
           This causes it to reread config files if in continuous_mode, and
           die so that the config will be reloaded on next start otherwise */
-       system("killall -HUP browser-switchboard > /dev/null 2>&1");
+       system("kill -HUP `pidof browser-switchboard` > /dev/null 2>&1");
 }
 
 
 }