bug-bash
[Top][All Lists]
Advanced

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

Re: Async processes started in functions not reliably started


From: Steffen Nurpmeso
Subject: Re: Async processes started in functions not reliably started
Date: Mon, 05 Aug 2019 14:05:43 +0200
User-agent: s-nail v14.9.14-9-g0a0ff75e

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)



reply via email to

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