mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
XTerm improvements.
This commit is contained in:
parent
99f8c772fd
commit
b382a8fcc0
4 changed files with 10 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue