This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [Patch]Fix the output of argument "options" for wait4, waitpid and waitid
Hello, Frank.
Sorry for late answer.
Frank Ch. Eigler wrote:
Cai Fei <caifei@cn.fujitsu.com> writes:
The system calls wait4, waitpid and waitid has an argument "int options".
[...]
and the values of WSTOPPED and WUNTRACED are equal.
It looks like all the matching names have matching values across the
system calls (which makes sense). So why not just add WNOWAIT to the
_wait4_opt_str(), and perhaps rename it to indicate that it accepts a
union of all the wait* options?
Is there any misunderstanding? I can not get your meaning. WNOWAIT
already exists in
_wait4_opt_str() before the adding of _waitid_opt_str().