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

SIGPIPE not handled #2286

Closed
hroptatyr opened this issue Dec 7, 2011 · 3 comments
Closed

SIGPIPE not handled #2286

hroptatyr opened this issue Dec 7, 2011 · 3 comments

Comments

@hroptatyr
Copy link

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

@bnoordhuis
Copy link
Member

Cannot reproduce. What does node -v say?

@hroptatyr
Copy link
Author

v0.4.12

@bnoordhuis
Copy link
Member

The v0.4 branch is EOL'd. Please upgrade to v0.6.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants