bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.0 regression: Script stuck when waiting in trap


From: Robert Elz
Subject: Re: 5.0 regression: Script stuck when waiting in trap
Date: Thu, 06 Jun 2019 20:12:45 +0700

    Date:        Thu, 6 Jun 2019 09:57:24 +0200
    From:        mwnx <address@hidden>
    Message-ID:  <address@hidden>

  | After all, it does wait for all other
  | kinds of processes irrespective of when they were started or how
  | many there are,

Shells aren't required to keep track of any process that the script
doesn't bother to track.   Many do, but it isn't required.   If you
want to know when a process ends, you need to save its PID when it
is created (ie: reference $! - save it in some variable).   Once you've
done that, the shell is supposed to track it, and "wait" should include
that process.

Whether bash works that way with processes created for process substitutions
(which are a non-standard thing to do) I don't know however.

kre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]