[DTrace-devel] [PATCH v2] test: Disown child pid for cleaner stderr

Nick Alcock nick.alcock at oracle.com
Fri Nov 1 13:42:47 UTC 2024


On 31 Oct 2024, eugene loh verbalised:

> From: Eugene Loh <eugene.loh at 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 at oracle.com>

Reviewed-by: Nick Alcock <nick.alcock at 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)



More information about the DTrace-devel mailing list