From deb9688ae12018dac6f669caf26ceceeebc5c992 Mon Sep 17 00:00:00 2001 From: Dmitrij Tejblum Date: Sat, 12 Sep 1998 22:03:20 +0000 Subject: 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. --- lib/libpthread/thread/thr_vfork.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/libpthread/thread/thr_vfork.c (limited to 'lib/libpthread/thread/thr_vfork.c') diff --git a/lib/libpthread/thread/thr_vfork.c b/lib/libpthread/thread/thr_vfork.c new file mode 100644 index 0000000000000..bbfcf002bc02c --- /dev/null +++ b/lib/libpthread/thread/thr_vfork.c @@ -0,0 +1,9 @@ +#include +#ifdef _THREAD_SAFE + +int +vfork(void) +{ + return (fork()); +} +#endif -- cgit v1.3