mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 15:03:41 +00:00
deb9688ae1
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.
10 lines
86 B
C
10 lines
86 B
C
#include <unistd.h>
|
|
#ifdef _THREAD_SAFE
|
|
|
|
int
|
|
vfork(void)
|
|
{
|
|
return (fork());
|
|
}
|
|
#endif
|