Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

docs: note about empty environment in child processes

Fixes #1794.
  • Loading branch information...
polotek authored and koichik committed Sep 29, 2011
1 parent dea49e3 commit 3fc01d9770058aaaf1bc09879f02bd277aaf2035
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/api/child_processes.markdown
@@ -137,6 +137,10 @@ Example of checking for failed exec:
}
});

Note that if spawn receives an empty options object, it will result in
spawning the process with an empty environment rather than using
`process.env`. This due to backwards compatibility issues with a deprecated
API.

See also: `child_process.exec()`

0 comments on commit 3fc01d9

Please sign in to comment.
You can’t perform that action at this time.