File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
71
71
}
72
72
} ) ;
73
73
74
- childProcess . on ( "close" , ( arg : any ) => {
74
+ childProcess . on ( "close" , async ( arg : any ) => {
75
75
const exitCode = typeof arg === "number" ? arg : arg && arg . code ;
76
76
if ( exitCode === 0 ) {
77
77
resolve ( childProcess ) ;
@@ -80,6 +80,8 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
80
80
error . code = exitCode ;
81
81
reject ( error ) ;
82
82
}
83
+
84
+ await this . $cleanupService . removeKillProcess ( childProcess . pid . toString ( ) ) ;
83
85
} ) ;
84
86
} ) ;
85
87
}
@@ -92,7 +94,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
92
94
}
93
95
94
96
const childProcess = await this . startWebpackProcess ( platformData , projectData , prepareData ) ;
95
- childProcess . on ( "close" , ( arg : any ) => {
97
+ childProcess . on ( "close" , async ( arg : any ) => {
96
98
const exitCode = typeof arg === "number" ? arg : arg && arg . code ;
97
99
if ( exitCode === 0 ) {
98
100
resolve ( ) ;
@@ -101,6 +103,8 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
101
103
error . code = exitCode ;
102
104
reject ( error ) ;
103
105
}
106
+
107
+ await this . $cleanupService . removeKillProcess ( childProcess . pid . toString ( ) ) ;
104
108
} ) ;
105
109
} ) ;
106
110
}
You can’t perform that action at this time.
0 commit comments