diff --git a/src/wmfs.c b/src/wmfs.c index d2f82ba..da57998 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -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);