Skip to content

Instantly share code, notes, and snippets.

@evanlucas
Created September 28, 2017 20:32
Show Gist options
  • Save evanlucas/e0ec34c75aabf085427cfd67f36c9333 to your computer and use it in GitHub Desktop.
Save evanlucas/e0ec34c75aabf085427cfd67f36c9333 to your computer and use it in GitHub Desktop.
'use strict';
const common = require('../common');
const assert = require('assert');
const os = require('os');
process.on('SIGINT', common.mustCall());
process.on('SIGTERM', common.mustCall());
process.kill(process.pid, 'SIGINT');
process.kill(process.pid, 'SIGTERM')
'use strict';
const common = require('../common');
const assert = require('assert');
const os = require('os');
process.on('SIGINT', common.mustCall());
process.on('SIGTERM', common.mustCall());
setTimeout(() => {
process.kill(process.pid, 'SIGINT');
process.kill(process.pid, 'SIGTERM')
}, 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment