1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 23:33:38 +00:00

Updated workaround for Old Linux message-box, so that it supports cancelation

This commit is contained in:
Bryan Roe
2020-06-12 18:09:27 -07:00
parent b2a99c7497
commit dbefd25475
2 changed files with 9 additions and 8 deletions

View File

@@ -368,6 +368,7 @@ function linux_messageBox()
var uname = require('user-sessions').getUsername(uid);
this.promise._ch = require('child_process').execFile('/bin/sh', ['sh'], { type: require('child_process').SpawnTypes.TERM });
this.promise._ch.promise = this.promise;
this.promise.child = this.promise._ch;
this.promise._ch.stderr.str = ''; this.promise._ch.stderr.on('data', function (c) { this.str += c.toString(); });
this.promise._ch.stdout.str = ''; this.promise._ch.stdout.on('data', function (c)
{