1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

XTerm improvements.

This commit is contained in:
Ylian Saint-Hilaire 2020-01-25 14:17:21 -08:00
parent 99f8c772fd
commit b382a8fcc0
4 changed files with 10 additions and 12 deletions

View file

@ -1793,9 +1793,9 @@ function createMeshCore(agent) {
} else {
if (ws.httprequest.process == null || !ws.httprequest.process.pty) return;
// ILibDuktape_ChildProcess kill doesn't support sending signals
if (fs.existsSync("/bin/kill")) {
if (fs.existsSync('/bin/kill')) {
// We need to send signal to the child of the process, since the child is the shell
childProcess.execFile('/bin/bash', ['bash', "-c", "kill -SIGWINCH $(pgrep -P " + ws.httprequest.process.pid + ")"]);
childProcess.execFile('/bin/bash', ['bash', '-c', 'kill -SIGWINCH $(pgrep -P ' + ws.httprequest.process.pid + ')']);
}
}
break;