Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
foreground-child /
dist /
mjs /
Delete
Unzip
Name
Size
Permission
Date
Action
all-signals.d.ts
123
B
-rw-r--r--
2023-08-18 17:29
all-signals.d.ts.map
150
B
-rw-r--r--
2023-08-18 17:29
all-signals.js
1.24
KB
-rw-r--r--
2023-08-18 17:29
all-signals.js.map
2.2
KB
-rw-r--r--
2023-08-18 17:29
index.d.ts
2.57
KB
-rw-r--r--
2023-08-18 17:29
index.d.ts.map
1.42
KB
-rw-r--r--
2023-08-18 17:29
index.js
4.25
KB
-rw-r--r--
2023-08-18 17:29
index.js.map
10.31
KB
-rw-r--r--
2023-08-18 17:29
package.json
23
B
-rw-r--r--
2023-08-18 17:29
watchdog.d.ts
185
B
-rw-r--r--
2023-08-18 17:29
watchdog.d.ts.map
197
B
-rw-r--r--
2023-08-18 17:29
watchdog.js
1.13
KB
-rw-r--r--
2023-08-18 17:29
watchdog.js.map
1.89
KB
-rw-r--r--
2023-08-18 17:29
Save
Rename
// this spawns a child process that listens for SIGHUP when the // parent process exits, and after 200ms, sends a SIGKILL to the // child, in case it did not terminate. import { spawn } from 'child_process'; const watchdogCode = String.raw ` const pid = parseInt(process.argv[1], 10) process.title = 'node (foreground-child watchdog pid=' + pid + ')' if (!isNaN(pid)) { let barked = false // keepalive const interval = setInterval(() => {}, 60000) const bark = () => { clearInterval(interval) if (barked) return barked = true process.removeListener('SIGHUP', bark) setTimeout(() => { try { process.kill(pid, 'SIGKILL') setTimeout(() => process.exit(), 200) } catch (_) {} }, 500) }) process.on('SIGHUP', bark) } `; export const watchdog = (child) => { let dogExited = false; const dog = spawn(process.execPath, ['-e', watchdogCode, String(child.pid)], { stdio: 'ignore', }); dog.on('exit', () => (dogExited = true)); child.on('exit', () => { if (!dogExited) dog.kill('SIGTERM'); }); return dog; }; //# sourceMappingURL=watchdog.js.map