From 5ff150d365ca2087a91d8da7a6b57a703f409088 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 31 Jul 2019 13:20:05 -0700 Subject: [PATCH] turbostat: remove prctl This won't be reliable since our handlers are run on threads. --- src/sysprofd/sysprof-turbostat.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/sysprofd/sysprof-turbostat.c b/src/sysprofd/sysprof-turbostat.c index 7c3fc735..4c6301d7 100644 --- a/src/sysprofd/sysprof-turbostat.c +++ b/src/sysprofd/sysprof-turbostat.c @@ -23,20 +23,13 @@ #include "sysprof-turbostat.h" #include -#include #include #include #include #include #include -#include -#include #include -#ifdef __linux__ -# include -#endif - struct _SysprofTurbostat { GPid pid; @@ -85,14 +78,6 @@ sysprof_turbostat_free (SysprofTurbostat *self) g_rc_box_release_full (self, sysprof_turbostat_finalize); } -static void -child_setup_cb (gpointer data) -{ -#ifdef __linux__ - prctl (PR_SET_PDEATHSIG, SIGTERM); -#endif -} - static gboolean sysprof_turbostat_watch_cb (GIOChannel *channel, GIOCondition cond, @@ -237,7 +222,7 @@ sysprof_turbostat_start (SysprofTurbostat *self, (gchar **)argv, env, (G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL), - child_setup_cb, + NULL, NULL, &self->pid, NULL,