Re: multi-threaded compiling
Chet Ramey <[email protected]> Mon, 11 Mar 2024 15:49:38 -0400
| Newsgroups | gmane.comp.gnu.make.general,gmane.comp.shells.bash.bugs |
|---|---|
| Organization | ITS, Case Western Reserve University |
| Message-ID | <[email protected]> |
On 3/11/24 2:46 PM, Mischa Baars wrote: > You mean: > for (( i=0; i<32; i++ )); do exit $i; done; for (( i=0; i<32; i++ )); do > wait -n; echo $?; done; > > Because this doesn't and to be honest, I needed the pid and its index to > retrieve gcc's output from a log file array afterwards. If you want the pid, take a look at the -p option to wait. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
(application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE----- wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCZe9gUgUDAAAAAAAKCRC7WGnwZOp0qzHB AJ9D07xhnf7s672Z4K+BcIZf8sqVOQCeJzfo1A/+WhHGtu5Z+pUN5r9ZYjQ= =v8fo -----END PGP SIGNATURE-----