Skip to content

Instantly share code, notes, and snippets.

@aleafs
aleafs / core_will_be_dumped
Created August 31, 2012 03:52
node crash when send handle to child
/* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */
"use strict";
var listen = function (port, onconnection) {
var res = new (process.binding('tcp_wrap').TCP);
res.onconnection = onconnection;
res.bind('0.0.0.0', port);
res.listen(128);
return res;