pthread_atfork() 在成功完成之后返回零。其他任何返回值都表示出现了错误。如果出现以下情况,pthread_atfork() 将失败并返回相应的值。
ENOMEM
表空间不足,无法记录 Fork 处理程序地址。