Fix: load: incomplete error handling for load_session_from_file
[lttng-tools.git] / src / bin / lttng-sessiond / process-utils.c
CommitLineData
a7333da7 1/*
ab5be9fa
MJ
2 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
a7333da7 5 *
ab5be9fa 6 * SPDX-License-Identifier: GPL-2.0-only
a7333da7 7 *
a7333da7
JG
8 */
9
10#include <signal.h>
11#include "lttng-sessiond.h"
12
13/* Notify parents that we are ready for cmd and health check */
14void sessiond_signal_parents(void)
15{
16 /*
17 * Notify parent pid that we are ready to accept command
18 * for client side. This ppid is the one from the
19 * external process that spawned us.
20 */
21 if (config.sig_parent) {
22 kill(ppid, SIGUSR1);
23 }
24
25 /*
26 * Notify the parent of the fork() process that we are
27 * ready.
28 */
29 if (config.daemonize || config.background) {
30 kill(child_ppid, SIGUSR1);
31 }
32}
This page took 0.042428 seconds and 5 git commands to generate.