{"issue":{"created_at":"2011-12-14T20:02:20Z","state":"closed","updated_at":"2011-12-14T23:05:28Z","user":{"gravatar_id":"88980828020437cf9ec42c936d69e686","id":692459,"url":"https://api.github.com/users/mmalecki","login":"mmalecki","avatar_url":"https://secure.gravatar.com/avatar/88980828020437cf9ec42c936d69e686?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":18,"body":"Seems like this has something to do with file descriptors getting screwed during forking.\r\n\r\nI'll try describing this problem using problems we've had with [`forever`](https://github.com/nodejitsu/forever).\r\n\r\nWhen `forever` [forks](https://github.com/nodejitsu/forever/blob/master/lib/forever.js#L338-367), 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.\r\n\r\nModule we're using for forking is [`daemon.node`](https://github.com/indexzero/daemon.node).\r\n\r\nI 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!).\r\n\r\n@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?","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2557375,"labels":[],"number":2334,"title":"`node` can't `fork(2)` safely","html_url":"https://github.com/joyent/node/issues/2334","closed_at":"2011-12-14T23:05:28Z","url":"https://api.github.com/repos/joyent/node/issues/2334","milestone":null},"action":"created","comment":{"created_at":"2011-12-14T23:05:28Z","updated_at":"2011-12-14T23:05:28Z","user":{"gravatar_id":"b984299ceb40752b58146714eb192554","id":80,"url":"https://api.github.com/users/ry","login":"ry","avatar_url":"https://secure.gravatar.com/avatar/b984299ceb40752b58146714eb192554?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Reconsider - we're not going to support fork.","id":3153822,"url":"https://api.github.com/repos/joyent/node/issues/comments/3153822"}}