This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
SIGPIPE not handled #2286
Closed
Description
Steps to reproduce:
cat <<EOF > foo
var sys = require("sys");
for (i = 0; i < 20; i++) {
sys.puts(i);
}
EOF
then:
node foo | head
0
1
2
3
4
5
6
7
8
9
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Socket is not writable
at Socket._writeOut (net.js:391:11)
at Socket.write (net.js:377:17)
at Object.puts (util.js:34:20)
at Object.<anonymous> (/home/freundt/temp/bar:3:6)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array.<anonymous> (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)
Reproducible: always
Expected behaviour: proper handling of SIGPIPE
Metadata
Metadata
Assignees
Labels
No labels