Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIGPIPE normally doesn't cause node to exit [1]. However, by registering and unregistering a "SIGPIPE" event handler, the behavior changes and node starts exiting when receiving SIGPIPE signals. Because signal-exit listens for SIGPIPE, it causes programs to exit when receiving SIGPIPE, whereas normally node programs not using signal-exit should not exit when receiving SIGPIPE. This changes signal-exit to not listen for SIGPIPE and tests that a program using signal-exit will not exit due to SIGPIPE signals. The test uses an existing test fixture (test/fixtures/sigpipe.js) that was not previously being used. See also #19. [1] https://github.com/nodejs/node/blame/44aba1ab1c2656caf8f0f03a2f47b4c4b35aa4a2/doc/api/process.markdown#L243
- Loading branch information