freebsd-src/lib/libkse/thread/thr_vfork.c
Dmitrij Tejblum deb9688ae1 In libc_r, rename vfork syscall to _thread_sys_vfork and make vfork an alias
to fork. It is difficult to do real vfork in libc_r, since almost every
operation with file descriptsor changes _thread_fd_table and friends.

popen(3) works much better with this change.
1998-09-12 22:03:20 +00:00

10 lines
86 B
C

#include <unistd.h>
#ifdef _THREAD_SAFE
int
vfork(void)
{
return (fork());
}
#endif