mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
action.c: use kill() instead of spawning killall
Also update documentation to say `killall -s SIGHUP labwc` to make it work on Void Linux. Fix #393
This commit is contained in:
parent
05ae654547
commit
5f30773a6e
2 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include <strings.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <signal.h>
|
||||
#include "common/spawn.h"
|
||||
#include "common/zfree.h"
|
||||
#include "debug.h"
|
||||
|
|
@ -200,8 +201,7 @@ actions_run(struct view *activator, struct server *server,
|
|||
osd_update(server);
|
||||
break;
|
||||
case ACTION_TYPE_RECONFIGURE:
|
||||
/* Should be changed to signal() */
|
||||
spawn_async_no_shell("killall -SIGHUP labwc");
|
||||
kill(getpid(), SIGHUP);
|
||||
break;
|
||||
case ACTION_TYPE_SHOW_MENU:
|
||||
show_menu(server, view, action->arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue