diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-10-23 22:36:30 +0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-10-23 22:37:40 +0400 |
commit | 9bf2975f78ce097c82a720bdda82810c1188a8ef (patch) | |
tree | fb02a66647ac130f88774bdc70f62e213ef3a98a /doc | |
parent | d9a5edb2b076063058a0631c5389b053f649dd1d (diff) |
Make sure Error object on exec() gets killed member
Also default to SIGTERM for destruction when exceeding timeout or buffer on
exec()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api.markdown b/doc/api.markdown index 32e9b0c6a1a..5f7f141933b 100644 --- a/doc/api.markdown +++ b/doc/api.markdown @@ -1068,14 +1068,14 @@ There is a second optional argument to specify several options. The default opti { encoding: 'utf8' , timeout: 0 , maxBuffer: 200*1024 - , killSignal: 'SIGKILL' + , killSignal: 'SIGTERM' , cwd: null , env: null } If `timeout` is greater than 0, then it will kill the child process if it runs longer than `timeout` milliseconds. The child process is killed with -`killSignal` (default: `'SIGKILL'`). `maxBuffer` specifies the largest +`killSignal` (default: `'SIGTERM'`). `maxBuffer` specifies the largest amount of data allowed on stdout or stderr - if this value is exceeded then the child process is killed. |