On Tue, Jul 31, 2012 at 12:15:14AM -0700, Mariusz Nowak wrote:
> @Jeff If you're handling not detached child processes process will never
> 'exit' naturally, so waiting for 'exit' event means waiting forever. You
> need to either manually kill child process or manually kill master process,
> and you just can't do it in generic low-level module.
>
> I already found out, that what I was after is currently impossible. I can
> start other process within Node.js in not persistent way using spawn and
> detached set to true, but it will only work if I don't setup any
> communication between current process and one I'm creating. There's no way
> to have both detached process and communicate with it via IPC channel.
Why not use named pipes?
> Anyway I decided that what I wanted to achieve is not clean, creating
> background processes in generic modules is not great, and I gone other path,
> less ideal from the functionality point of view, but definitely cleaner.
An out-of-process architecture does not seem entirely unreasonable, actually.
--
Alan Gutierrez -
http://twitter.com/bigeasy -
http://github.com/bigeasy