X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=config-ui%2Fbrowser-switchboard-cp.c;h=bee946bb8419fac2624c54717e66187adaf141e2;hp=142b008473e885b44ad4df1bcaf0fc392413bdc9;hb=200c09077cca37c63752a22d6818635d773834e6;hpb=d3235c153fcd1cb13fff96eeff47713b56f3885f diff --git a/config-ui/browser-switchboard-cp.c b/config-ui/browser-switchboard-cp.c index 142b008..bee946b 100644 --- a/config-ui/browser-switchboard-cp.c +++ b/config-ui/browser-switchboard-cp.c @@ -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("kill -HUP `busybox ps | fgrep 'python /usr/bin/browser-switchboard' | fgrep -v grep | awk '{ print $1 }'` > /dev/null 2>&1"); }