Re: [PATCH] t5562: chunked sleep to avoid lost SIGCHILD

2019-02-19 Thread Junio C Hamano
Max Kirillov writes: > If was found during stress-test run that a test may hang by 60 seconds. > It supposedly happens because SIGCHILD was received before sleep has > started. > > Fix by looping by smaller chunks, checking $exited after each of them. > Then lost SIGCHILD would not cause longer d

Re: [PATCH] t5562: chunked sleep to avoid lost SIGCHILD

2019-02-18 Thread Max Kirillov
On Mon, Feb 18, 2019 at 03:54:27PM -0500, Randall S. Becker wrote: > On February 18, 2019 15:50, Max Kirillov wrote: > > To: SZEDER Gábor ; git@vger.kernel.org > > Cc: Max Kirillov ; Johannes Schindelin > > ; Randall S. Becker > > ; 'Junio C Hamano' > &g

RE: [PATCH] t5562: chunked sleep to avoid lost SIGCHILD

2019-02-18 Thread Randall S. Becker
On February 18, 2019 15:50, Max Kirillov wrote: > To: SZEDER Gábor ; git@vger.kernel.org > Cc: Max Kirillov ; Johannes Schindelin > ; Randall S. Becker > ; 'Junio C Hamano' > Subject: [PATCH] t5562: chunked sleep to avoid lost SIGCHILD > > If was found during stres

[PATCH] t5562: chunked sleep to avoid lost SIGCHILD

2019-02-18 Thread Max Kirillov
If was found during stress-test run that a test may hang by 60 seconds. It supposedly happens because SIGCHILD was received before sleep has started. Fix by looping by smaller chunks, checking $exited after each of them. Then lost SIGCHILD would not cause longer delay than 1 second. Reported-by: