diff options
author | dt <dt@FreeBSD.org> | 1998-09-12 22:03:20 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1998-09-12 22:03:20 +0000 |
commit | 613a2bdfdecf9393b99b2c5db227a51a940e746b (patch) | |
tree | 3f061a428b7f6ca96bf141b620aae2439a24bfab /lib/libpthread/thread/thr_vfork.c | |
parent | 9aee196299648c93b416ff7774bda3da6934d78d (diff) | |
download | FreeBSD-src-613a2bdfdecf9393b99b2c5db227a51a940e746b.zip FreeBSD-src-613a2bdfdecf9393b99b2c5db227a51a940e746b.tar.gz |
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.
Diffstat (limited to 'lib/libpthread/thread/thr_vfork.c')
-rw-r--r-- | lib/libpthread/thread/thr_vfork.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_vfork.c b/lib/libpthread/thread/thr_vfork.c new file mode 100644 index 0000000..bbfcf00 --- /dev/null +++ b/lib/libpthread/thread/thr_vfork.c @@ -0,0 +1,9 @@ +#include <unistd.h> +#ifdef _THREAD_SAFE + +int +vfork(void) +{ + return (fork()); +} +#endif |