File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ if (common.inFreeBSDJail) {
22
22
return ;
23
23
}
24
24
25
- function launchChildProcess ( index ) {
25
+ function launchChildProcess ( ) {
26
26
const worker = fork ( __filename , [ 'child' ] ) ;
27
27
workers [ worker . pid ] = worker ;
28
28
29
29
worker . messagesReceived = [ ] ;
30
30
31
31
// Handle the death of workers.
32
- worker . on ( 'exit' , function ( code , signal ) {
32
+ worker . on ( 'exit' , function ( code ) {
33
33
// Don't consider this the true death if the worker has finished
34
34
// successfully or if the exit code is 0.
35
35
if ( worker . isDone || code === 0 ) {
@@ -189,7 +189,7 @@ if (process.argv[2] === 'child') {
189
189
190
190
process . send ( { message : buf . toString ( ) } ) ;
191
191
192
- if ( receivedMessages . length == messages . length ) {
192
+ if ( receivedMessages . length === messages . length ) {
193
193
// .dropMembership() not strictly needed but here as a sanity check.
194
194
listenSocket . dropMembership ( LOCAL_BROADCAST_HOST ) ;
195
195
process . nextTick ( function ( ) {
You can’t perform that action at this time.
0 commit comments