File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ export class AttachWaitFor {
24
24
25
25
//Naive poll mechanism, parses /proc for a while till a match is found
26
26
private async poll ( program : string ) : Promise < string | undefined > {
27
+ this . _channel . clear ( )
27
28
const startTime = Date . now ( ) ; // Get the current time in milliseconds
28
29
let seen = new Set < string > ( ) ;
29
30
let process : string | undefined ;
30
-
31
31
while ( true ) {
32
32
const elapsedTime = Date . now ( ) - startTime ;
33
33
@@ -62,6 +62,9 @@ export class AttachWaitFor {
62
62
if ( ! process && p . detail ! . includes ( program ) ) {
63
63
console . log ( "Found program waiting for with pid %s - info %s" , p . id ! , p . detail ! )
64
64
process = p . id !
65
+
66
+ // Send sigstop by default?
67
+ util . execChildProcess ( `kill -STOP ${ process } ` , undefined , this . _channel )
65
68
return
66
69
}
67
70
You can’t perform that action at this time.
0 commit comments