Re: [PATCH v2] test: Disown child pid for cleaner stderr

Nick Alcock
2024-11-01T13:42:58Z

On 31 Oct 2024, eugene loh verbalised:

> From: Eugene Loh <eugene.loh@oracle.com>
>
> The shell can report when a job is killed, potentially
> polluting stderr and thereby mismatching the results file.
>
> When a job is killed at the end of test, appearance of such
> reports may depend on timing details: does the parent test
> or the child job terminate first?
>
> Many tests deal with this problem by disowning child jobs.
>
> Disown jobs in a few more possibly problematic tests.

> Signed-off-by: Eugene Loh <eugene.loh@oracle.com>

Reviewed-by: Nick Alcock <nick.alcock@oracle.com>

(My only reason for not doing that already was that I mistakenly thought
disown didn't do anything in noninteractive shells.)

--
NULL && (void)