Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15295

Re: Async processes started in functions not reliably started

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Steffen Nurpmeso <steffen@sdaoden.eu>
Newsgroups gnu.bash.bug
Subject Re: Async processes started in functions not reliably started
Date Mon, 05 Aug 2019 14:05:43 +0200
Lines 30
Approved bug-bash@gnu.org
Message-ID <mailman.895.1565006754.1985.bug-bash@gnu.org> (permalink)
References <20190803224008.dVNLU%steffen@sdaoden.eu> <20190803231715.YFelC%steffen@sdaoden.eu> <20190805120543.Bf9-U%steffen@sdaoden.eu>
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1565006755 6525 209.51.188.17 (5 Aug 2019 12:05:55 GMT)
X-Complaints-To action@cs.stanford.edu
Cc Steffen Nurpmeso <steffen@sdaoden.eu>
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
In-Reply-To <20190803231715.YFelC%steffen@sdaoden.eu>
Mail-Followup-To bug-bash@gnu.org, Steffen Nurpmeso <steffen@sdaoden.eu>
User-Agent s-nail v14.9.14-9-g0a0ff75e
OpenPGP id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt
BlahBlahBlah Any stupid boy can crush a beetle. But all the professors in the world can make no bugs.
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 217.144.132.164
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20190805120543.Bf9-U%steffen@sdaoden.eu>
X-Mailman-Original-References <20190803224008.dVNLU%steffen@sdaoden.eu> <20190803231715.YFelC%steffen@sdaoden.eu>
Xref csiph.com gnu.bash.bug:15295

Show key headers only | View raw


Hi, and a nice Monday, if possible.

Steffen Nurpmeso wrote in <20190803231715.YFelC%steffen@sdaoden.eu>:
 |Steffen Nurpmeso wrote in <20190803224008.dVNLU%steffen@sdaoden.eu>:
 |  ...
 ||wanted to add a reaper process which automatically kills tests
 ||which need longer than X seconds.  That turns out to be more
 | ..
 |Seems to work[.]
 ...
 |   i=${!}
 |
 |   sleep 1
 |   if kill -USR1 ${i} >/dev/null 2>&1; then

Nonsense.  I will synchronize on a temporary file so that the
child will not die due to a not yet installed trap handler when
the first signal is emitted.
Would be nice to have some shell support for signalling the parent
that the child is now functional, a pipe(2) is much easier than
going through temporary files, but of course not a bash bug.
Sorry for the noise.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Async processes started in functions not reliably started Steffen Nurpmeso <steffen@sdaoden.eu> - 2019-08-05 14:05 +0200

csiph-web