diff options
Diffstat (limited to 'tz-launcher/tz-launcher-wl.c')
-rw-r--r-- | tz-launcher/tz-launcher-wl.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tz-launcher/tz-launcher-wl.c b/tz-launcher/tz-launcher-wl.c index 9e3dd74..b580367 100644 --- a/tz-launcher/tz-launcher-wl.c +++ b/tz-launcher/tz-launcher-wl.c @@ -174,6 +174,15 @@ load_icon (char *path) } static void +sigchild_handler (int s) +{ + pid_t pid; + + while (pid = waitpid (-1, NULL, WNOHANG), pid > 0) + g_printerr ("child %d exited\n", pid); +} + +static void launcher_button_handler(struct widget *widget, struct input *input, uint32_t time, uint32_t button, @@ -459,6 +468,8 @@ tz_launcher_wl_run (int desktopfiles, gchar ***desktoptable) return; } + signal (SIGCHLD, sigchild_handler); + main_window_create (display, desktopfiles, desktoptable); display_run (display); |