Richard Pospesel pushed to branch tor-browser-102.6.0esr-12.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
dca7ddb7
by Pier Angelo Vendrame at 2023-01-10T19:18:47+00:00
1 changed file:
Changes:
| ... | ... | @@ -133,9 +133,10 @@ class TorProcess { |
| 133 | 133 | arguments: this._args,
|
| 134 | 134 | environment,
|
| 135 | 135 | environmentAppend: true,
|
| 136 | - stderr: "pipe",
|
|
| 136 | + stderr: "stdout",
|
|
| 137 | 137 | };
|
| 138 | 138 | this._subprocess = await Subprocess.call(options);
|
| 139 | + this._dumpStdout();
|
|
| 139 | 140 | this._watchProcess();
|
| 140 | 141 | this._status = TorProcessStatus.Running;
|
| 141 | 142 | this._torProcessStartTime = Date.now();
|
| ... | ... | @@ -173,6 +174,16 @@ class TorProcess { |
| 173 | 174 | this._didConnectToTorControlPort = true;
|
| 174 | 175 | }
|
| 175 | 176 | |
| 177 | + async _dumpStdout() {
|
|
| 178 | + let string;
|
|
| 179 | + while (
|
|
| 180 | + this._subprocess &&
|
|
| 181 | + (string = await this._subprocess.stdout.readString())
|
|
| 182 | + ) {
|
|
| 183 | + dump(string);
|
|
| 184 | + }
|
|
| 185 | + }
|
|
| 186 | + |
|
| 176 | 187 | async _watchProcess() {
|
| 177 | 188 | const watched = this._subprocess;
|
| 178 | 189 | if (!watched) {
|