config-ui: Teach UI how to HUP C browser-switchboards
[browser-switch] / config-ui / browser-switchboard-cp.c
index 142b008..1099890 100644 (file)
@@ -260,7 +260,10 @@ out:
 static void do_reconfig(void) {
        save_config();
 
-       /* TODO: send HUP to browser-switchboard */
+       /* 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");
 }