Skip to content

Instantly share code, notes, and snippets.

Seth Lakowske lakowske

Block or report user

Report or block lakowske

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lakowske / gist:a3172e1c90dbf0090dcb
Created Jun 30, 2014
Testing Process's SIGINT interception
View gist:a3172e1c90dbf0090dcb
(function(Process) {
describe('Process', function() {
it('intercepts sig int', function(done) {
Process.on('exit', function(exitPromises) {
var exitProcess = new RSVP.Promise(function(resolve, reject) {
setTimeout(function() {
}, 100);
lakowske / gist:8da4636aeac4fbc4e30f
Last active Aug 29, 2015
System resources and cooperative process exit
View gist:8da4636aeac4fbc4e30f
(function(COMPOSITE) {
//Load our dependencies
var util = require('util');
var events = require('events');
var RSVP = require('rsvp');
COMPOSITE.Process = new events.EventEmitter;
//Before we get interrupted, close resources
You can’t perform that action at this time.