weston-launch: show when a signal is sent to a child
In verbose mode, print when a signal is sent to the child process. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
@@ -510,8 +510,14 @@ handle_signal(struct weston_launch *wl)
|
||||
break;
|
||||
case SIGTERM:
|
||||
case SIGINT:
|
||||
if (wl->child)
|
||||
kill(wl->child, sig.ssi_signo);
|
||||
if (!wl->child)
|
||||
break;
|
||||
|
||||
if (wl->verbose)
|
||||
fprintf(stderr, "weston-launch: sending %s to pid %d\n",
|
||||
strsignal(sig.ssi_signo), wl->child);
|
||||
|
||||
kill(wl->child, sig.ssi_signo);
|
||||
break;
|
||||
case SIGUSR1:
|
||||
send_reply(wl, WESTON_LAUNCHER_DEACTIVATE);
|
||||
|
||||
Reference in New Issue
Block a user