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 1414 apt-get install -y sudo
1515 fi
1616
17+ echo '* soft nofile 1048576' | sudo tee /etc/security/limits.conf
18+ echo '* hard nofile 1048576' | sudo tee /etc/security/limits.conf
19+
1720 sudo apt-get update -y | true
1821 sudo apt-get install -y \
1922 autoconf \
Original file line number Diff line number Diff line change @@ -119,16 +119,17 @@ function (): iterable {
119119 $ res = pcntl_wait ($ status );
120120 if ($ res === -1 ) {
121121 printMutex ("An error occurred while waiting with waitpid! " );
122- $ finalStatus = 1 ;
122+ $ finalStatus = $ finalStatus ?: 1 ;
123123 return ;
124124 }
125125 if (!isset ($ parentPids [$ res ])) {
126126 printMutex ("Unknown PID $ res returned! " );
127- $ finalStatus = 1 ;
127+ $ finalStatus = $ finalStatus ?: 1 ;
128128 return ;
129129 }
130130 unset($ parentPids [$ res ]);
131131 if ($ status !== 0 ) {
132+ printMutex ("Child exited with status $ status " );
132133 $ finalStatus = $ status ;
133134 }
134135};
@@ -217,9 +218,13 @@ function (): iterable {
217218 );
218219 }
219220 }
221+
222+ printMutex ("$ dir: exiting with status $ final " );
220223 exit ($ final );
221224}
222225
223226$ waitAll ();
224227
228+ printMutex ("All done! " );
229+
225230die ($ finalStatus );
You can’t perform that action at this time.
0 commit comments