You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLOEXEC is short for "close on exec". It means the descriptor will be closed automatically when the process calls exec(). It's not closed when forking. LINK
SRS分支改进后,去掉了对多进程的检测,而OSX在fork后会关闭fd,导致
kevent
返回-1
死循环。在初始化时调用
_st_kq_init
创建了kqueue,fd是3:运行后,daemon经过两次fork,fd=3已经关闭,变成了pid文件了:
最初是有pid改变的检测的( event.c#L970 ),由于在linux下没有用多进程,所以在这个分支去掉了这个逻辑。
The text was updated successfully, but these errors were encountered: