Kill status script in quit()

This commit is contained in:
Philippe Pepiot 2010-04-20 03:43:28 +02:00
parent 52dba6418e
commit 0e8ffff152

View File

@ -128,6 +128,10 @@ quit(void)
XSync(dpy, False);
XCloseDisplay(dpy);
/* kill status script */
if (conf.status_pid != (pid_t)-1)
kill(conf.status_pid, SIGQUIT);
return;
}
@ -271,9 +275,6 @@ uicb_reload(uicb_t cmd)
{
quit();
if (conf.status_pid != (pid_t)-1)
kill(conf.status_pid, SIGQUIT);
for(; argv_global[0] && argv_global[0] == ' '; ++argv_global);
execlp(argv_global, argv_global, NULL);