From: Stefan Agner Date: Fri, 8 Nov 2019 23:51:29 +0000 (+0100) Subject: weston-launch: use exec to ensure signal delivery X-Git-Tag: upstream/9.0.0~306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04eebc7f07781710c1e17e934390328b628b75ee;p=platform%2Fupstream%2Fweston.git weston-launch: use exec to ensure signal delivery Use exec to make sure the direct child process of weston-launch is weston. This makes sure that signal delivery (SIGINT/SIGTERM) is properly forwarded to weston. Fixes ff3230952a68 ("weston-launch: Run weston in the user login shell") Signed-off-by: Stefan Agner --- diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c index 95d6874f..8a711b4a 100644 --- a/libweston/weston-launch.c +++ b/libweston/weston-launch.c @@ -682,7 +682,7 @@ setup_session(struct weston_launch *wl, char **child_argv) child_argv[0] = "/bin/sh"; child_argv[1] = "-l"; child_argv[2] = "-c"; - child_argv[3] = BINDIR "/weston \"$@\""; + child_argv[3] = "exec " BINDIR "/weston \"$@\""; child_argv[4] = "weston"; return 5; }