[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wait -n shouldn't collect multiple processes
From: |
Ben Elliston |
Subject: |
Re: wait -n shouldn't collect multiple processes |
Date: |
Sun, 24 Mar 2019 08:15:30 +1100 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
On Sat, Mar 23, 2019 at 11:48:33AM -0400, Chet Ramey wrote:
> What's your goal here? If you want to associate an exit status with
> a process, you're going to have to save $! and wait for each process
> in turn.
My goal is to run a small process pool where upon one process
completes, another one is started immediately. If I start (say) 10
processes and then wait on the first, I may have chosen the longest
running process.
Ben
signature.asc
Description: PGP signature