File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 14
14
apt-get install -y sudo
15
15
fi
16
16
17
+ echo '* soft nofile 1048576' | sudo tee /etc/security/limits.conf
18
+ echo '* hard nofile 1048576' | sudo tee /etc/security/limits.conf
19
+
17
20
sudo apt-get update -y | true
18
21
sudo apt-get install -y \
19
22
autoconf \
Original file line number Diff line number Diff line change @@ -119,16 +119,17 @@ function (): iterable {
119
119
$ res = pcntl_wait ($ status );
120
120
if ($ res === -1 ) {
121
121
printMutex ("An error occurred while waiting with waitpid! " );
122
- $ finalStatus = 1 ;
122
+ $ finalStatus = $ finalStatus ?: 1 ;
123
123
return ;
124
124
}
125
125
if (!isset ($ parentPids [$ res ])) {
126
126
printMutex ("Unknown PID $ res returned! " );
127
- $ finalStatus = 1 ;
127
+ $ finalStatus = $ finalStatus ?: 1 ;
128
128
return ;
129
129
}
130
130
unset($ parentPids [$ res ]);
131
131
if ($ status !== 0 ) {
132
+ printMutex ("Child exited with status $ status " );
132
133
$ finalStatus = $ status ;
133
134
}
134
135
};
@@ -217,9 +218,13 @@ function (): iterable {
217
218
);
218
219
}
219
220
}
221
+
222
+ printMutex ("$ dir: exiting with status $ final " );
220
223
exit ($ final );
221
224
}
222
225
223
226
$ waitAll ();
224
227
228
+ printMutex ("All done! " );
229
+
225
230
die ($ finalStatus );
You can’t perform that action at this time.
0 commit comments