mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 15:24:40 -05:00
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.
9 lines
86 B
C
9 lines
86 B
C
#include <unistd.h>
|
|
#ifdef _THREAD_SAFE
|
|
|
|
int
|
|
vfork(void)
|
|
{
|
|
return (fork());
|
|
}
|
|
#endif
|