Hi Chet, Sorry for reviving an old discussion, I lost track back then.
On Fri, 07 Nov 2014 08:24:07 -0500, Chet Ramey wrote: > On 11/7/14, 3:49 AM, Jean Delvare wrote: > > 2* If bash remembers the process statuses, how does one access the > > information? I couldn't find anything related to that in the manual > > page, but it's huge so maybe I missed it. > > You can use wait with a pid argument, maybe one that you saved earlier > in a script or obtained from `ps'. My question is, what is the point of keeping the information after wait has been called for that PID? If this is the only possible use of the information, I do not understand why the record is not discarded after calling "wait $pid". I think we will stay away from background sleep and wait for now, and instead use: read -t 1 -N 0 This was suggested by an lm-sensors user and as far as I can tell it fits the bill with no downside. Thanks, -- Jean Delvare SUSE L3 Support