This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Closed
Description
Seems like this has something to do with file descriptors getting screwed during forking.
I'll try describing this problem using problems we've had with forever.
When forever forks, it tries to start up a Unix socket server. It worked with node v0.4 but doesn't work with node v0.6. Bad Unix socket persist, causing ECONNREFUSED. Also, unlinking pid file is not possible.
Module we're using for forking is daemon.node.
I think that forever isn't the only usecase for forking processes (right now there's no native way to background a node process without killing it!).
@bnoordhuis told me that node (including libuv) isn't fork-safe and that making it fork-safe isn't even taken into consideration. Can we reconsider it?
Metadata
Assignees
Labels
No labels
Activity