projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libinterfork: fix warnings
[lttng-ust.git]
/
libinterfork
/
interfork.c
diff --git
a/libinterfork/interfork.c
b/libinterfork/interfork.c
index e57b7e593c06664a5cf73313185ef6cea3462935..646dbda22f31e826f7ad5205147b831c083c9c5b 100644
(file)
--- a/
libinterfork/interfork.c
+++ b/
libinterfork/interfork.c
@@
-20,6
+20,8
@@
#include <unistd.h>
#include <stdio.h>
#include <unistd.h>
#include <stdio.h>
+extern void ust_fork(void);
+
pid_t fork(void)
{
static pid_t (*plibc_func)(void) = NULL;
pid_t fork(void)
{
static pid_t (*plibc_func)(void) = NULL;
@@
-30,11
+32,10
@@
pid_t fork(void)
plibc_func = dlsym(RTLD_NEXT, "fork");
if(plibc_func == NULL) {
fprintf(stderr, "libcwrap: unable to find fork\n");
plibc_func = dlsym(RTLD_NEXT, "fork");
if(plibc_func == NULL) {
fprintf(stderr, "libcwrap: unable to find fork\n");
- return
NULL
;
+ return
-1
;
}
}
}
}
- printf("IN FORK!\n");
retval = plibc_func();
if(retval == 0)
retval = plibc_func();
if(retval == 0)
This page took
0.025351 seconds
and
4
git commands to generate.