File tree 4 files changed +12
-8
lines changed
node_modules/foreground-child
4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,17 @@ function foregroundChild(...fgArgs) {
63
63
} ;
64
64
const removeOnExit = ( 0 , signal_exit_1 . onExit ) ( childHangup ) ;
65
65
( 0 , proxy_signals_js_1 . proxySignals ) ( child ) ;
66
- ( 0 , watchdog_js_1 . watchdog ) ( child ) ;
66
+ const dog = ( 0 , watchdog_js_1 . watchdog ) ( child ) ;
67
67
let done = false ;
68
68
child . on ( 'close' , async ( code , signal ) => {
69
69
/* c8 ignore start */
70
70
if ( done )
71
71
return ;
72
72
/* c8 ignore stop */
73
73
done = true ;
74
- const result = cleanup ( code , signal ) ;
74
+ const result = cleanup ( code , signal , {
75
+ watchdogPid : dog . pid ,
76
+ } ) ;
75
77
const res = isPromise ( result ) ? await result : result ;
76
78
removeOnExit ( ) ;
77
79
if ( res === false )
Original file line number Diff line number Diff line change @@ -56,15 +56,17 @@ export function foregroundChild(...fgArgs) {
56
56
} ;
57
57
const removeOnExit = onExit ( childHangup ) ;
58
58
proxySignals ( child ) ;
59
- watchdog ( child ) ;
59
+ const dog = watchdog ( child ) ;
60
60
let done = false ;
61
61
child . on ( 'close' , async ( code , signal ) => {
62
62
/* c8 ignore start */
63
63
if ( done )
64
64
return ;
65
65
/* c8 ignore stop */
66
66
done = true ;
67
- const result = cleanup ( code , signal ) ;
67
+ const result = cleanup ( code , signal , {
68
+ watchdogPid : dog . pid ,
69
+ } ) ;
68
70
const res = isPromise ( result ) ? await result : result ;
69
71
removeOnExit ( ) ;
70
72
if ( res === false )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " foreground-child" ,
3
- "version" : " 3.2.1 " ,
3
+ "version" : " 3.3.0 " ,
4
4
"description" : " Run a child as if it's the foreground process. Give it stdio. Exit when it exits." ,
5
5
"main" : " ./dist/commonjs/index.js" ,
6
6
"types" : " ./dist/commonjs/index.d.ts" ,
Original file line number Diff line number Diff line change 5600
5600
}
5601
5601
},
5602
5602
"node_modules/foreground-child": {
5603
- "version": "3.2.1 ",
5604
- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1 .tgz",
5605
- "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA ==",
5603
+ "version": "3.3.0 ",
5604
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0 .tgz",
5605
+ "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg ==",
5606
5606
"inBundle": true,
5607
5607
"license": "ISC",
5608
5608
"dependencies": {
You can’t perform that action at this time.
0 commit comments