~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/api/child_process.markdown

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
2. The process could not be killed, or
37
37
3. Sending a message to the child process failed for whatever reason.
38
38
 
 
39
Note that the `exit`-event may or may not fire after an error has occured. If
 
40
you are listening on both events to fire a function, remember to guard against
 
41
calling your function twice.
 
42
 
39
43
See also [`ChildProcess#kill()`](#child_process_child_kill_signal) and
40
44
[`ChildProcess#send()`](#child_process_child_send_message_sendhandle).
41
45
 
551
555
  * `env` {Object} Environment key-value pairs
552
556
  * `encoding` {String} (Default: 'utf8')
553
557
  * `execPath` {String} Executable used to create the child process
 
558
  * `execArgv` {Array} List of string arguments passed to the executable
 
559
    (Default: `process.execArgv`)
554
560
  * `silent` {Boolean} If true, prevent stdout and stderr in the spawned node
555
561
    process from being associated with the parent's (default is false)
556
562
* Return: ChildProcess object