diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2021-03-10 09:53:09 -0600 | 
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2021-03-10 09:53:09 -0600 | 
| commit | fba820d5f69e5ad9bdccdf6b2f34dbcce61b0c15 (patch) | |
| tree | 4f3f5db4985349fb437c16a78a557b1abf078062 | |
| parent | 21445461923cecb2c5f579febee7c55f201d94e9 (diff) | |
| parent | 1fa72b07728ebb396a9f236921b81c369bb12ccb (diff) | |
Merge branch 'main' into wlroots-next
| -rw-r--r-- | dwl.c | 15 | 
1 files changed, 3 insertions, 12 deletions
| @@ -278,7 +278,6 @@ static void setlayout(const Arg *arg);  static void setmfact(const Arg *arg);  static void setmon(Client *c, Monitor *m, unsigned int newtags);  static void setup(void); -static void sigchld(int unused);  static void spawn(const Arg *arg);  static void tag(const Arg *arg);  static void tagmon(const Arg *arg); @@ -1984,8 +1983,9 @@ setup(void)  	 * clients from the Unix socket, manging Wayland globals, and so on. */  	dpy = wl_display_create(); -	/* clean up child processes immediately */ -	sigchld(0); +	/* Indicate explicitly to the OS that we are not interested in info +	 * about child processes (per POSIX.1-2001) */ +	signal(SIGCHLD, SIG_IGN);  	/* The backend is a wlroots feature which abstracts the underlying input and  	 * output hardware. The autocreate option will choose the most suitable @@ -2137,15 +2137,6 @@ setup(void)  }  void -sigchld(int unused) -{ -	if (signal(SIGCHLD, sigchld) == SIG_ERR) -		EBARF("can't install SIGCHLD handler"); -	while (0 < waitpid(-1, NULL, WNOHANG)) -		; -} - -void  spawn(const Arg *arg)  {  	if (fork() == 0) { | 
