initial commit
This commit is contained in:
13
node_modules/when-exit/dist/node/signals.js
generated
vendored
Normal file
13
node_modules/when-exit/dist/node/signals.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/* IMPORT */
|
||||
import { IS_LINUX, IS_WINDOWS } from './constants.js';
|
||||
/* MAIN */
|
||||
//URL: https://github.com/tapjs/signal-exit/blob/03dd77a96caa309c6a02c59274d58c812a2dce45/signals.js
|
||||
const Signals = ['SIGABRT', 'SIGALRM', 'SIGHUP', 'SIGINT', 'SIGTERM'];
|
||||
if (!IS_WINDOWS) {
|
||||
Signals.push('SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT');
|
||||
}
|
||||
if (IS_LINUX) {
|
||||
Signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', 'SIGUNUSED');
|
||||
}
|
||||
/* EXPORT */
|
||||
export default Signals;
|
||||
Reference in New Issue
Block a user