#include <dlfcn.h>
#include <unistd.h>
#include <stdio.h>
+#include "share/usterr.h"
+
+extern void ust_fork(void);
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)