Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: note about empty environment in child processes
Browse files Browse the repository at this point in the history
Fixes #1794.
  • Loading branch information
polotek authored and koichik committed Sep 29, 2011
1 parent dea49e3 commit 3fc01d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/child_processes.markdown
Expand Up @@ -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()`

Expand Down

0 comments on commit 3fc01d9

Please sign in to comment.