Re: Async processes started in functions not reliably started

2019-08-10 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20190810225044.fqnym%stef...@sdaoden.eu>: |And maybe someone can shed some light on this. This would be |nice. ... |Steffen Nurpmeso wrote in <20190807193402.d1zqm%stef...@sdaoden.eu>: ||Steffen Nurpmeso wrote in <20190806142527.9hs0i%stef...@sdaoden.eu>: |||Robert

Re: Async processes started in functions not reliably started

2019-08-10 Thread Steffen Nurpmeso
Hello and a nice Saturday evening, Mr. Elz, and everyone. While it is not a bash bug, and therefore quite off topic, i come back to this once more. Maybe it is of interest for someone. And maybe someone can shed some light on this. This would be nice. Steffen Nurpmeso wrote in <20190807193402.

Re: Async processes started in functions not reliably started

2019-08-07 Thread Steffen Nurpmeso
Hello. Steffen Nurpmeso wrote in <20190806142527.9hs0i%stef...@sdaoden.eu>: |Robert Elz wrote in <26245.1565045...@jinx.noi.kre.to>: ||Date:Mon, 05 Aug 2019 14:05:43 +0200 ||From:Steffen Nurpmeso ||Message-ID: <20190805120543.bf9-u%stef...@sdaoden.eu> .. ||The s

Re: Async processes started in functions not reliably started

2019-08-06 Thread Steffen Nurpmeso
Hello Mr. Elz. Ah, that old story, you are very much welcome. Robert Elz wrote in <26245.1565045...@jinx.noi.kre.to>: |Date:Mon, 05 Aug 2019 14:05:43 +0200 |From:Steffen Nurpmeso |Message-ID: <20190805120543.bf9-u%stef...@sdaoden.eu> | || Would be nice to have s

Re: Async processes started in functions not reliably started

2019-08-05 Thread Robert Elz
Date:Mon, 05 Aug 2019 14:05:43 +0200 From:Steffen Nurpmeso Message-ID: <20190805120543.bf9-u%stef...@sdaoden.eu> | Would be nice to have some shell support for signalling the parent | that the child is now functional, The shell cannot really know - your example w

Re: Async processes started in functions not reliably started

2019-08-05 Thread Steffen Nurpmeso
Chet Ramey wrote in : |On 8/5/19 8:05 AM, Steffen Nurpmeso wrote: | |> 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. | |You could roll your

Re: Async processes started in functions not reliably started

2019-08-05 Thread Chet Ramey
On 8/5/19 8:05 AM, Steffen Nurpmeso wrote: > 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. You could roll your own using a named pipe, but that's f

Re: Async processes started in functions not reliably started

2019-08-05 Thread Steffen Nurpmeso
Hi, and a nice Monday, if possible. Steffen Nurpmeso wrote in <20190803231715.yfelc%stef...@sdaoden.eu>: |Steffen Nurpmeso wrote in <20190803224008.dvnlu%stef...@sdaoden.eu>: | ... ||wanted to add a reaper process which automatically kills tests ||which need longer than X seconds. That turns

Re: Async processes started in functions not reliably started

2019-08-03 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20190803224008.dvnlu%stef...@sdaoden.eu>: ... |wanted to add a reaper process which automatically kills tests |which need longer than X seconds. That turns out to be more .. | echo shell is $SHELL/$0 | ( | int= hot= | echo 'Starting job reaper' |

Async processes started in functions not reliably started

2019-08-03 Thread Steffen Nurpmeso
Hello. For the MUA i maintain i yet implemented parallel tests, and now wanted to add a reaper process which automatically kills tests which need longer than X seconds. That turns out to be more complicated than i thought, it works just fine in mksh, but does not work at all in dash (which can al