Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created December 26, 2014 03:48
Show Gist options
  • Save ELLIOTTCABLE/2d69fde76343a3baaca1 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/2d69fde76343a3baaca1 to your computer and use it in GitHub Desktop.
var d = require('domain').create()
d.on('error', function(err){
if (err.code === 'EPIPE') return process.exit() })
d.add(process.stdin)
d.add(process.stdout)
d.enter()
@ELLIOTTCABLE
Copy link
Author

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: write EPIPE
    at errnoException (net.js:904:11)
    at Object.afterWrite (net.js:720:19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment