2 * Copyright (C) 2009 Pierre-Marc Fournier
3 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 * SPDX-License-Identifier: LGPL-2.1-only
11 #include <sys/types.h>
14 #define TRACEPOINT_DEFINE
15 #define TRACEPOINT_CREATE_PROBES
16 #include "ust_tests_daemon.h"
22 pid_t parent_pid
= getpid();
23 printf("parent_pid %d\n", parent_pid
);
24 tracepoint(ust_tests_daemon
, before_daemon
, parent_pid
);
26 result
= daemon(0, 1);
28 printf("child_pid %d\n", getpid());
30 tracepoint(ust_tests_daemon
, after_daemon_child
, getpid());
32 tracepoint(ust_tests_daemon
, after_daemon_parent
);
This page took 0.040771 seconds and 4 git commands to generate.