Lines Matching +full:require +full:- +full:common +full:- +full:first
2 const common = require('../common'); constant
4 if (common.isWindows)
5 common.skip('no signals in Windows');
6 if (!common.isMainThread)
7 common.skip('No signal handling available in Workers');
9 const assert = require('assert');
10 const initHooks = require('./init-hooks');
11 const { checkInvocations } = require('./hook-checks');
12 const exec = require('child_process').exec;
21 process.on('SIGUSR2', common.mustCall(onsigusr2, 2));
32 exec(`kill -USR2 ${process.pid}`);
40 // first invocation
43 ' signal1: when first SIGUSR2 handler is called for the first time');
46 exec(`kill -USR2 ${process.pid}`);
51 'signal1: when first SIGUSR2 handler is called for the second time');
55 process.on('SIGUSR2', common.mustCall(onsigusr2Again));
64 signal2 = as[expectedLen - 1]; // Last item in the array.
76 exec(`kill -USR2 ${process.pid}`);