diff options
author | Squibid <me@zacharyscheiman.com> | 2024-06-16 13:24:11 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2024-06-16 13:24:11 -0400 |
commit | 1c52faa7534d6f9e6da6028c75fb92314bcb2adc (patch) | |
tree | 293a095c410dc2774841e70d035ca5951a6a9a84 | |
parent | d33de07040ad3b81ae8b07148b350cc05274eb06 (diff) | |
download | wiz-1c52faa7534d6f9e6da6028c75fb92314bcb2adc.tar.gz wiz-1c52faa7534d6f9e6da6028c75fb92314bcb2adc.tar.bz2 wiz-1c52faa7534d6f9e6da6028c75fb92314bcb2adc.zip |
save 32 bits of memory on startup
-rw-r--r-- | wiz.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |