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