File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,12 @@ if (cluster.isWorker) {
93
93
existMaster = ! ! code ;
94
94
95
95
// Give the workers time to shut down
96
- setTimeout ( checkWorkers , 200 ) ;
96
+ var timeout = 200 ;
97
+ if ( common . isAix ) {
98
+ // AIX needs more time due to default exit performance
99
+ timeout = 1000 ;
100
+ }
101
+ setTimeout ( checkWorkers , timeout ) ;
97
102
98
103
function checkWorkers ( ) {
99
104
// When master is dead all workers should be dead to
Original file line number Diff line number Diff line change @@ -59,9 +59,14 @@ if (cluster.isWorker) {
59
59
assert . equal ( code , 0 ) ;
60
60
61
61
// check worker process status
62
+ var timeout = 200 ;
63
+ if ( common . isAix ) {
64
+ // AIX needs more time due to default exit performance
65
+ timeout = 1000 ;
66
+ }
62
67
setTimeout ( function ( ) {
63
68
alive = isAlive ( pid ) ;
64
- } , 200 ) ;
69
+ } , timeout ) ;
65
70
} ) ;
66
71
67
72
process . once ( 'exit' , function ( ) {
You can’t perform that action at this time.
0 commit comments