@@ -3,7 +3,7 @@ const DEV_MODE = process.env.HTK_DEV === 'true';
33// Set up error handling before everything else:
44import { logError , addBreadcrumb } from './errors.ts' ;
55
6- import { spawn , ChildProcess , execSync } from 'child_process' ;
6+ import { spawn , ChildProcess } from 'child_process' ;
77import * as os from 'os' ;
88import { promises as fs , createWriteStream , WriteStream } from 'fs'
99import * as net from 'net' ;
@@ -154,15 +154,6 @@ if (!amMainInstance) {
154154 console . log ( 'Failed to kill server' , error ) ;
155155 logError ( error ) ;
156156 } finally {
157- // Log at exit
158- execSync ( 'ps xao pid,ppid,pgid,cmd --forest' , {
159- stdio : 'inherit'
160- } ) ;
161-
162- if ( process . stdin ) process . stdin . destroy ( ) ;
163- if ( process . stdout ) process . stdout . destroy ( ) ;
164- if ( process . stderr ) process . stderr . destroy ( ) ;
165-
166157 // We've done our best - now shut down for real.
167158 app . quit ( ) ;
168159 }
@@ -375,11 +366,6 @@ if (!amMainInstance) {
375366 }
376367
377368 async function startServer ( retries = 2 ) {
378- await delay ( 100 ) ;
379- execSync ( 'ps xao pid,ppid,pgid,cmd --forest' , {
380- stdio : 'inherit'
381- } ) ;
382-
383369 logStream . write ( 'Starting server\n' ) ;
384370 const binName = isWindows ? 'httptoolkit-server.cmd' : 'httptoolkit-server' ;
385371 const serverBinPath = path . join ( RESOURCES_PATH , 'httptoolkit-server' , 'bin' , binName ) ;
0 commit comments