【发布时间】:2016-06-14 16:36:57
【问题描述】:
POSIX 标准是否允许在 main() 之前调用 fork() - 例如,在 C++ static 实例中,或在 __attribute__((constructor)) C 函数中?
【问题讨论】:
-
__atribute__不是标准 C,也不是 POSIX。而 C++ 是一种不同的语言。 -
为什么你甚至想要在
main()之前打电话给fork()?
标签: c++ c fork posix language-lawyer