[DTrace-devel] [PATCH] test: Wait for output to flush out in enable_pid

Nick Alcock nick.alcock at oracle.com
Fri Jun 13 14:15:44 UTC 2025


On 8 Jun 2025, eugene loh told this:

> From: Eugene Loh <eugene.loh at oracle.com>
>
> Our luck with this test has been quite good, but it sometimes fails
> to show its last lines of output.  That is, we send a USR1 to the
> trigger processes to set off the final output and we immediately
> cat the output files.  If there is any delay, the last output will
> be missing.
>
> Add a short delay so that the last output will be seen.

Unavoidable if it's structured this way, but if you hit them with a USR2
and caught USR2 and had that do the same output as USR1 and then exit(),
and did a wait(1) for both of them, you could avoid this delay.

-- 
NULL && (void)



More information about the DTrace-devel mailing list