Skip to content

Commit

Permalink
Merge pull request #198 from stutonk/sigchld
Browse files Browse the repository at this point in the history
Avoid creation of zombie process by load_config
  • Loading branch information
JLErvin authored Dec 18, 2022
2 parents e5bcb3f + 3501ee0 commit c665902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "config.h"

#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
Expand Down Expand Up @@ -2536,8 +2537,10 @@ main(int argc, char *argv[])
LOGN("Successfully opened display");

setup();
if (conf_found)
if (conf_found) {
signal(SIGCHLD, SIG_IGN);
load_config(conf_path);
}
run();
close_wm();
free(font_name);
Expand Down

0 comments on commit c665902

Please sign in to comment.