From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/1] tree: Use TST_EXP_FAIL2() for wait{,id}
Date: Thu, 9 May 2024 16:20:55 +0200 [thread overview]
Message-ID: <20240509142055.GB305046@pevik> (raw)
In-Reply-To: <20240509141710.GA305046@pevik>
> 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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2024-05-09 14:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-01 15:13 [LTP] [PATCH 1/1] tree: Use TST_EXP_FAIL2() for wait{,id} Petr Vorel
2024-05-09 14:08 ` Cyril Hrubis
2024-05-09 14:17 ` Petr Vorel
2024-05-09 14:20 ` Petr Vorel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240509142055.GB305046@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).