[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parent trap EXIT appears to subshell but is not used
From: |
Robert Elz |
Subject: |
Re: parent trap EXIT appears to subshell but is not used |
Date: |
Thu, 01 Apr 2021 04:59:44 +0700 |
Date: Tue, 30 Mar 2021 07:33:08 +0300
From: =?UTF-8?B?T8SfdXo=?= <oguzismailuysal@gmail.com>
Message-ID:
<CAH7i3Lo2LfMRE-6Q65UqN8y+ZVrWm4Gmu_hXE7XpRB6pcE3CiA@mail.gmail.com>
| The same goes for the job table right?
Yes, though there's no posix explanation for that (no expectation
there that code would ever want to examine it).
| None of ash derivatives (including
| netbsd sh) seems to do that right though. `( sleep 3 & ( sleep 1 & wait )
| )' hangs for three seconds instead of one, which doesn't happen on other
| shells.
This is fixed in the current NetBSD sh, it waits for 1 second there, just
as if the job table was immediately cleared in the sub-shell. I forget now
just how long ago that fix was installed, or if it got pulled up to the
netbsd-9 branch (ie: whether it can be expected in a reasonably up to date
9_STABLE version of sh).
Hmm - I just checked, that was fixed years ago, the fixed version should be
in NetBSD 8.1 and anything later (but not 8.0 or earlier) ("later" includes
everything netbsd 9 and more recent).
kre