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 ext_idle_notification_v1_listener idlelistener;
|
||||||
static const struct wl_registry_listener reglistener;
|
static const struct wl_registry_listener reglistener;
|
||||||
|
|
||||||
pid_t cpid;
|
|
||||||
|
|
||||||
struct Events {
|
struct Events {
|
||||||
uint32_t delay; /* in ms */
|
uint32_t delay; /* in ms */
|
||||||
char **idlecmd;
|
char **idlecmd;
|
||||||
@ -94,6 +92,8 @@ static const struct ext_idle_notification_v1_listener idlelistener = {
|
|||||||
static void
|
static void
|
||||||
run(char **cmd)
|
run(char **cmd)
|
||||||
{
|
{
|
||||||
|
static pid_t cpid;
|
||||||
|
|
||||||
waitpid(-1, NULL, WNOHANG);
|
waitpid(-1, NULL, WNOHANG);
|
||||||
if (killchild && cpid)
|
if (killchild && cpid)
|
||||||
kill(cpid, SIGINT);
|
kill(cpid, SIGINT);
|
||||||
|
Reference in New Issue
Block a user