[gnome-builder] application: drop use of prctl



commit a21393a3c89f6f420892257234855f0dfc2962dc
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 25 17:13:05 2017 -0700

    application: drop use of prctl
    
    This isn't exactly safe to do because we have no control over
    the threading of the parent process. We need to instead rely
    on the process group for killing the process.

 src/libide/application/ide-application.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/libide/application/ide-application.c b/src/libide/application/ide-application.c
index 0524cd1..8797408 100644
--- a/src/libide/application/ide-application.c
+++ b/src/libide/application/ide-application.c
@@ -26,9 +26,6 @@
 #include <ide-icons-resources.h>
 #include <locale.h>
 #include <stdlib.h>
-#ifdef __linux
-# include <sys/prctl.h>
-#endif
 
 #include "ide-debug.h"
 #include "ide-global.h"
@@ -215,11 +212,6 @@ ide_application_activate_worker (IdeApplication *self)
   g_assert (self->worker != NULL);
   g_assert (self->dbus_address != NULL);
 
-#ifdef __linux
-  /* Ensure we are killed with our parent */
-  prctl (PR_SET_PDEATHSIG, SIGKILL);
-#endif
-
   IDE_TRACE_MSG ("Connecting to %s", self->dbus_address);
 
   connection = g_dbus_connection_new_for_address_sync (self->dbus_address,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]