@@ -185,30 +185,30 @@ Crash analysis of: ` + JSON.stringify(instanceInfo) + '\n';
185185 return 'cdb ' + args . join ( ' ' ) ;
186186}
187187
188- function checkMonitorAlive ( binary , arangod , options , res ) {
189- if ( arangod . hasOwnProperty ( 'monitor' ) ) {
188+ function checkMonitorAlive ( binary , instanceInfo , options , res ) {
189+ if ( instanceInfo . hasOwnProperty ( 'monitor' ) ) {
190190 // Windows: wait for procdump to do its job...
191- if ( ! arangod . monitor . hasOwnProperty ( 'status' ) ) {
192- let rc = statusExternal ( arangod . monitor . pid , false ) ;
191+ if ( ! instanceInfo . monitor . hasOwnProperty ( 'status' ) ) {
192+ let rc = statusExternal ( instanceInfo . monitor . pid , false ) ;
193193 if ( rc . status !== 'RUNNING' ) {
194- arangod . monitor = rc ;
194+ instanceInfo . monitor = rc ;
195195 // procdump doesn't set propper exit codes, check for
196196 // dumps that may exist:
197- if ( fs . exists ( arangod . coreFilePattern ) ) {
197+ if ( fs . exists ( instanceInfo . coreFilePattern ) ) {
198198 print ( "checkMonitorAlive: marking crashy" ) ;
199- arangod . monitor . monitorExited = true ;
200- arangod . monitor . pid = null ;
199+ instanceInfo . monitor . monitorExited = true ;
200+ instanceInfo . monitor . pid = null ;
201201 pu . serverCrashed = true ;
202202 options . cleanup = false ;
203- arangod [ 'exitStatus' ] = { } ;
204- analyzeCrash ( binary , arangod , options , "the process monitor commanded error" ) ;
205- Object . assign ( arangod . exitStatus ,
206- killExternal ( arangod . pid , abortSignal ) ) ;
203+ instanceInfo [ 'exitStatus' ] = { } ;
204+ analyzeCrash ( binary , instanceInfo , options , "the process monitor commanded error" ) ;
205+ Object . assign ( instanceInfo . exitStatus ,
206+ killExternal ( instanceInfo . pid , abortSignal ) ) ;
207207 return false ;
208208 }
209209 }
210210 }
211- else return arangod . monitor . exitStatus ;
211+ else return instanceInfo . monitor . exitStatus ;
212212 }
213213 return true ;
214214}
0 commit comments