libinterfork: add usterr support
[ust.git] / libinterfork / interfork.c
index e57b7e593c06664a5cf73313185ef6cea3462935..81f896e57ccb27ac2555dc0e0a3570bf13415d8b 100644 (file)
@@ -19,6 +19,9 @@
 #include <dlfcn.h>
 #include <unistd.h>
 #include <stdio.h>
+#include "share/usterr.h"
+
+extern void ust_fork(void);
 
 pid_t fork(void)
 {
@@ -30,11 +33,10 @@ pid_t fork(void)
                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)
This page took 0.023859 seconds and 4 git commands to generate.