desktop-shell: launch clients in their own process group.

Client applications shouldn't be in the same process group as
the display server.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Derek Foreman 2017-03-24 09:41:13 -05:00 committed by Quentin Glidic
parent f0d39b2243
commit 091c801705
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,10 @@ panel_launcher_activate(struct panel_launcher *widget)
return;
argv = widget->argv.data;
if (setsid() == -1)
exit(EXIT_FAILURE);
if (execve(argv[0], argv, widget->envp.data) < 0) {
fprintf(stderr, "execl '%s' failed: %m\n", argv[0]);
exit(1);