X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fprocess-utils.c;fp=src%2Fbin%2Flttng-sessiond%2Fprocess-utils.c;h=0000000000000000000000000000000000000000;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hp=2d629b547e396dd1eee8ff1f3c6cc5aecaaa21d5;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/process-utils.c b/src/bin/lttng-sessiond/process-utils.c deleted file mode 100644 index 2d629b547..000000000 --- a/src/bin/lttng-sessiond/process-utils.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2011 David Goulet - * Copyright (C) 2011 Mathieu Desnoyers - * Copyright (C) 2013 Jérémie Galarneau - * - * SPDX-License-Identifier: GPL-2.0-only - * - */ - -#include -#include "lttng-sessiond.h" - -/* Notify parents that we are ready for cmd and health check */ -void sessiond_signal_parents(void) -{ - /* - * Notify parent pid that we are ready to accept command - * for client side. This ppid is the one from the - * external process that spawned us. - */ - if (the_config.sig_parent) { - kill(the_ppid, SIGUSR1); - } - - /* - * Notify the parent of the fork() process that we are - * ready. - */ - if (the_config.daemonize || the_config.background) { - kill(the_child_ppid, SIGUSR1); - } -}