[gdm/wip/wayland: 4/10] daemon: don't automatically kill server when its parent dies
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/wayland: 4/10] daemon: don't automatically kill server when its parent dies
- Date: Wed, 18 Sep 2013 05:10:26 +0000 (UTC)
commit 39d7601658e1763d53ed20d6adc187af8f3d792c
Author: Ray Strode <rstrode redhat com>
Date: Tue Sep 17 23:32:39 2013 -0400
daemon: don't automatically kill server when its parent dies
We're going to kill it explicitly anyway, and this takes away
flexibility if we choose not to kill it in certain circumstances.
daemon/gdm-server.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index 91a04e6..d43ff68 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -516,11 +516,6 @@ server_child_setup (GdmServer *server)
sigemptyset (&mask);
sigprocmask (SIG_SETMASK, &mask, NULL);
- /* Terminate the process when the parent dies */
-#ifdef HAVE_SYS_PRCTL_H
- prctl (PR_SET_PDEATHSIG, SIGTERM);
-#endif
-
if (server->priv->priority != 0) {
if (setpriority (PRIO_PROCESS, 0, server->priv->priority)) {
g_warning (_("%s: Server priority couldn't be set to %d: %s"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]