Hi, first, sorry if this is an inappropriate place to ask.

I am spawning a detached child process and am able to communicate via IPC 
just fine, I can shut down the master process and leave the child running.

What I need to do is restart the master and reconnect to the same IPC 
channel.

I am creating the process like so:
  var child = spawn('node',
                ['--harmony', '--use_strict', './src/screamer.js'],
                {  detached: true, stdio: [process.stdin, process.stdout, 
process.stderr, 'ipc'] });

Everything I've read, from the source to docs, seems that the fds for the 
child process are created in relation to the order of the stdio options 
array, eg, the ipc chanel should be fd 3 (stdio being 0,1,2)

When I attempt to open fd#3 on the child process, it doesn't appear that 
this is the case as it seems the fd doesn't exist. (actually the fd shows 
up in ls - perhaps it does exist and not accessible this way?) I tried 
opening it for writing+read and got a ENOENT..

cat /proc/15745/fd/3     
cat: /proc/15745/fd/3: No such device or address

I don't mind writing my own code to mimic child.send and such to make it 
work but first I need to be able to reopen the fd socket and pass/read json 
to/from it.

Do I just need to listen on a socket wired to that fd or something?

Help would be very much appreciated!!

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to