File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ if (common.inFreeBSDJail) {
2121 return ;
2222}
2323
24- function launchChildProcess ( index ) {
24+ function launchChildProcess ( ) {
2525 const worker = fork ( __filename , [ 'child' ] ) ;
2626 workers [ worker . pid ] = worker ;
2727
2828 worker . messagesReceived = [ ] ;
2929
3030 // Handle the death of workers.
31- worker . on ( 'exit' , function ( code , signal ) {
31+ worker . on ( 'exit' , function ( code ) {
3232 // Don't consider this the true death if the worker has finished
3333 // successfully or if the exit code is 0.
3434 if ( worker . isDone || code === 0 ) {
@@ -188,7 +188,7 @@ if (process.argv[2] === 'child') {
188188
189189 process . send ( { message : buf . toString ( ) } ) ;
190190
191- if ( receivedMessages . length == messages . length ) {
191+ if ( receivedMessages . length === messages . length ) {
192192 // .dropMembership() not strictly needed but here as a sanity check.
193193 listenSocket . dropMembership ( LOCAL_BROADCAST_HOST ) ;
194194 process . nextTick ( function ( ) {
You can’t perform that action at this time.
0 commit comments