Ryan Dahl
f7bc7fb031
Make sure Error object on exec() gets killed member
...
Also default to SIGTERM for destruction when exceeding timeout or buffer on
exec()
Back ported from v0.3; original commits:
bd8e4f656e
5a98fa4809
6570cd99e5
9bf2975f78
2010-10-24 12:57:57 -07:00
Bert Belder
7d4e8a9a71
If no options are given to child_process.spawn, env should default to process.env
...
Regression.
2010-08-09 15:37:14 -07:00
Bert Belder
aaa1f451e6
Expose cwd option to child_process.exec()
2010-08-06 13:38:41 -07:00
Bert Belder
94914135df
New api for child_process.spawn; ability to set cwd for spawn()ed process
...
Tests for child_process.spawn() use new API
Test for deprecated child_process.spawn() API
2010-08-06 13:37:30 -07:00
Ryan Dahl
7067a7155f
Specify env differently in execFile
...
Callbacks should always be the last argument.
2010-07-19 20:08:35 -07:00
Сергей Крыжановский
078a48a97b
added env to child_process.exec
2010-07-15 17:17:03 -07:00
Ryan Dahl
d700a6f74a
Return child from execFile
2010-07-12 14:18:09 -07:00
Orlando Vazquez
92da636b97
Add a parameter to spawn() that sets the child's stdio file descriptors.
...
After the child is forked, these file descriptors will get dup2()'d to STDIN,
STDIO, and STDERR.
(API may be changed.)
2010-06-02 10:41:24 -07:00
Ryan Dahl
d38d96eb61
Don't emit 'exit' twice from child process
2010-05-08 23:28:26 -07:00
Ryan Dahl
264e540d00
Fix error reporting in child_process callbacks
...
Issue 120, test case by Nathan Ostgard
2010-05-08 22:13:34 -07:00
Felix Geisendörfer
f8a3cf980f
Properly handle child process exit codes
...
The child process 'exit' was returning the status of the process, rather than
the exit code. This patch properly deconstructs the status into the exit code
and the term signal a process may have received.
See:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#Watcher_Specific_Functions_and_Data_-5
and waitpid(2)
2010-04-28 13:54:17 -07:00
Ryan Dahl
4efe27bbab
Add execFile() for Orlando
...
Undocumented for now, but basically like exec() with args.
2010-04-14 18:50:44 -07:00
Ryan Dahl
9cf2a02d8b
Add timeout and maxBuffer options to child_process.exec
2010-04-14 11:59:24 -07:00
Tim Caswell
62d9852c3d
Replace slow and broken for..in loops with faster for loops over the keys.
2010-04-12 10:34:35 -07:00
Tim Caswell
ff56d6364e
Fix child_process to use end() instead of close() in the stdin stream.
2010-04-09 10:01:47 -07:00
Ryan Dahl
b8bb6e9007
Close child process stdin on SIGCHLD
2010-04-08 15:20:13 -07:00
Ryan Dahl
1332cafb7c
s/Socket/Stream/g
2010-03-17 16:31:24 -07:00
Ryan Dahl
04c06b9149
child process now use net.Socket
2010-03-17 14:00:17 -07:00