[LTP] [PATCH] pidns13: Convert to new API and fix race condition

Petr Vorel pvorel@suse.cz
Fri Mar 5 16:05:55 CET 2021


Hi Richie,

> Firstly the test used sleep() for synchronisation which is unreliable
> and slow, so it has been converted to checkpoints.

> Secondly this still leaves a race between wake and sigtimedwait. Also
> at least two I/O signals are generated by the pipe FD. One for the
> write and probably one for EOF when the other end is closed. So we
> block the signal as suggested by the man pages.

Thanks a lot for fix and rewrite.
I did tiny change in docparse doc (remove tabs) to fix docparse error and
merged.

Kind regards,
Petr


More information about the ltp mailing list