Commit a21393a3 authored by Christian Hergert's avatar Christian Hergert
Browse files

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.
parent 624dbf0c
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment