浏览代码

make available a namespace-safe vfork, if supported

this may be useful to posix_spawn..?
Rich Felker 13 年之前
父节点
当前提交
768f39a535
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/process/vfork.c

+ 4 - 1
src/process/vfork.c

@@ -1,8 +1,11 @@
 #include <unistd.h>
 #include "syscall.h"
+#include "libc.h"
 
-pid_t vfork(void)
+pid_t __vfork(void)
 {
 	/* vfork syscall cannot be made from C code */
 	return syscall(SYS_fork);
 }
+
+weak_alias(__vfork, vfork);