[LTP] [PATCH 1/1] tree: Use TST_EXP_FAIL2() for wait{,id}

Petr Vorel pvorel@suse.cz
Thu May 9 16:20:55 CEST 2024


> Hi Cyril,

> > Hi!
> > > Both wait() and waitid() returns PID, therefore (similarly as for file
> > > descriptor) pass condition is >= 0, which is in TST_EXP_FAIL2().

> > Actually waitid() returns whatever was waited for in the siginfo_t
> > structure and returns just 0 on success.

> Ah, thanks!  I guess I misread "waitpid()" in man wait(3p) as "waitid()".

> I'll send v2 with just pidfd_open04.c and wait01.c changes.
Actually only wait01.c (pidfd_open04.c has also waitid) + searching for
waitpid() usage.

Kind regards,
Petr

> Kind regards,
> Petr


More information about the ltp mailing list