diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-10-08 11:24:37 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-10-08 11:24:37 -0400 |
commit | 73af58152b24e0cfe28f6c613e8e7523ffb515fc (patch) | |
tree | 08b4326d5e5b69b8b91e842ccc63a57b7f6f79fb /sway/main.c | |
parent | d2680ac8fe43c9469b0a2cc00ca53612bcab8438 (diff) | |
parent | 18f4905e62e1fb2042abd79b2a4c756187e3d506 (diff) |
Merge pull request #190 from taiyu-len/master
#187, let init handle child processes
Diffstat (limited to 'sway/main.c')
-rw-r--r-- | sway/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/main.c b/sway/main.c index 66921184..de17f440 100644 --- a/sway/main.c +++ b/sway/main.c @@ -22,8 +22,6 @@ void sway_terminate(void) { wlc_terminate(); } -static void sigchld_handle(int signal); - static void wlc_log_handler(enum wlc_log_type type, const char *str) { if (type == WLC_LOG_ERROR) { sway_log(L_ERROR, "[wlc] %s", str); @@ -64,9 +62,6 @@ int main(int argc, char **argv) { {0, 0, 0, 0} }; - /* Signal handling */ - signal(SIGCHLD, sigchld_handle); - setenv("WLC_DIM", "0", 0); wlc_log_set_handler(wlc_log_handler); @@ -153,7 +148,3 @@ int main(int argc, char **argv) { return 0; } -void sigchld_handle(int signal) { - (void) signal; - while (waitpid((pid_t)-1, 0, WNOHANG) > 0); -} |