Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/unload/src/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // set to true to log events
const DEBUG = false;
function add(fn) {
process.on('exit', () => {
DEBUG && console.log('node: exit');
return fn();
});
/**
* on the following events,
* the process will not end if there are
* event-handlers attached,
* therefore we have to call process.exit()
*/
process.on('beforeExit', () => {
DEBUG && console.log('node: beforeExit');
return fn().then(() => process.exit());
});
// catches ctrl+c event
process.on('SIGINT', () => {
DEBUG && console.log('node: SIGNINT');
return fn().then(() => process.exit());
});
// catches uncaught exceptions
process.on('uncaughtException', err => {
DEBUG && console.log('node: uncaughtException');
return fn()
.then(() => {
console.trace(err);
process.exit(1);
});
});
}
export default {
add
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]-- |