save 32 bits of memory on startup

This commit is contained in:
2024-06-16 13:24:11 -04:00
parent d33de07040
commit 1c52faa753

4
wiz.c
View File

@ -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);