projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[lttng-ust.git]
/
src
/
lib
/
lttng-ust-fork
/
ustfork.c
diff --git
a/src/lib/lttng-ust-fork/ustfork.c
b/src/lib/lttng-ust-fork/ustfork.c
index 3eb62d2a296567b96ee118881dc92d372a36eb90..321ffc30c0fd993d7be43a62fa9063fbe3a2e5ca 100644
(file)
--- a/
src/lib/lttng-ust-fork/ustfork.c
+++ b/
src/lib/lttng-ust-fork/ustfork.c
@@
-13,6
+13,7
@@
#include <signal.h>
#include <sched.h>
#include <stdarg.h>
#include <signal.h>
#include <sched.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <errno.h>
#include <lttng/ust-fork.h>
#include <errno.h>
#include <lttng/ust-fork.h>
@@
-403,7
+404,7
@@
int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
pid_t rfork(int flags)
{
pid_t rfork(int flags)
{
- static pid_t (*plibc_func)(
void
) = NULL;
+ static pid_t (*plibc_func)(
int flags
) = NULL;
sigset_t sigset;
pid_t retval;
int saved_errno;
sigset_t sigset;
pid_t retval;
int saved_errno;
@@
-419,7
+420,7
@@
pid_t rfork(int flags)
lttng_ust_before_fork(&sigset);
/* Do the real rfork */
lttng_ust_before_fork(&sigset);
/* Do the real rfork */
- retval = plibc_func();
+ retval = plibc_func(
flags
);
saved_errno = errno;
if (retval == 0) {
/* child */
saved_errno = errno;
if (retval == 0) {
/* child */
This page took
0.024414 seconds
and
4
git commands to generate.