save 32 bits of memory on startup
This commit is contained in:
4
wiz.c
4
wiz.c
@ -21,8 +21,6 @@ static struct wl_seat *seat;
|
||||
static const struct ext_idle_notification_v1_listener idlelistener;
|
||||
static const struct wl_registry_listener reglistener;
|
||||
|
||||
pid_t cpid;
|
||||
|
||||
struct Events {
|
||||
uint32_t delay; /* in ms */
|
||||
char **idlecmd;
|
||||
@ -94,6 +92,8 @@ static const struct ext_idle_notification_v1_listener idlelistener = {
|
||||
static void
|
||||
run(char **cmd)
|
||||
{
|
||||
static pid_t cpid;
|
||||
|
||||
waitpid(-1, NULL, WNOHANG);
|
||||
if (killchild && cpid)
|
||||
kill(cpid, SIGINT);
|
||||
|
Reference in New Issue
Block a user