diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 23:12:53 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 23:12:53 +0530 | 
| commit | c5965720ed2929625746dd7b5c561ef51b2953db (patch) | |
| tree | aba095f2e3c7de9ff0b2d8dcf62072aaa3468c1b | |
| parent | 616cc0d164a98ca62291cc340dd42b5c76b7809b (diff) | |
update
| -rw-r--r-- | dwl.c | 19 | 
1 files changed, 4 insertions, 15 deletions
| @@ -1619,21 +1619,10 @@ gpureset(struct wl_listener *listener, void *data)  void  handlesig(int signo)  { -	if (signo == SIGCHLD) { -		while (waitpid(-1, NULL, WNOHANG) > 0) { -			pid_t *p, *lim; -			if (!(p = autostart_pids)) -				continue; -			lim = &p[autostart_len]; - -			for (; p < lim; p++) { -				if (*p == in.si_pid) { -					*p = -1; -					break; -				} -			} -		} -	} else if (signo == SIGINT || signo == SIGTERM) +	if (signo == SIGCHLD) +		while (waitpid(-1, NULL, WNOHANG) > 0) +      ; +	else if (signo == SIGINT || signo == SIGTERM)  		quit(NULL);  } | 
