Why does the child runtime come up as negative?

I did a little test to see how much longer the child process execution takes with fork() compared to the parent. However, running this program, I get the execution for child to somehow come up as negative. #include <stdio.h> #include <unis...
more »

2017-05-06 13:05 (2) Answers

How to fork a process of another module

TL;DR : How does one fork a process that is located outside of the current running process? I'm trying to use child_process of Nodejs in order to start another nodejs process on the parent's process exit. I successfully executed the process with th...
more »

2016-12-18 16:12 (1) Answers

node.js - Listen events of a process using pid

Think of having an admin app which creates & manages child apps. I m spawning another child_process ( using childProcess.spawn('node', 'somefile.js') ). And, I m able to set event listeners (for ex, exit) on the childProcess, so that I can log t...
more »

2016-11-25 08:11 (0) Answers