* incomplete si_codes for waitid(2) [patch available]
@ 2009-04-16 16:11 Gokdeniz Karadag
[not found] ` <49E758A8.1080406-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Gokdeniz Karadag @ 2009-04-16 16:11 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
In a program I was debugging, waitid(2) returned a strange value in siginfo_t
structure's si_code field. It was different that those stated in the man page
for waitid(2) [ waitid(2) man page is the same as wait(2) ].
When I looked at the relevant file "/usr/include/bits/siginfo.h" there were two
more values for si_code:
CLD_DUMPED, /* Child terminated abnormally. */
CLD_TRAPPED, /* Traced child has trapped. */
I was getting CLD_DUMPED value along with core dumps so I state that as an
example in the patch. I'm not sure about how a process can get CLD_TRAPPED but
I include it for completeness' sake.
The diff applies to today's git version.
============================== diff ======================
diff --git a/man2/wait.2 b/man2/wait.2
index c95ff2c..4028fae 100644
--- a/man2/wait.2
+++ b/man2/wait.2
@@ -310,6 +310,10 @@ Set to one of:
.BR _exit (2));
.B CLD_KILLED
(child killed by signal);
+.B CLD_DUMPED
+(child terminated abnormally, ie. core dump);
+.B CLD_TRAPPED
+(child has trapped while being traced);
.B CLD_STOPPED
(child stopped by signal); or
.B CLD_CONTINUED
==========================================================
--
Gokdeniz Karadag
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: incomplete si_codes for waitid(2) [patch available]
[not found] ` <49E758A8.1080406-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2009-04-21 4:45 ` Michael Kerrisk
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2009-04-21 4:45 UTC (permalink / raw)
To: Gokdeniz Karadag; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi,
On Fri, Apr 17, 2009 at 4:11 AM, Gokdeniz Karadag <gokdenizk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi,
>
> In a program I was debugging, waitid(2) returned a strange value in siginfo_t
> structure's si_code field. It was different that those stated in the man page
> for waitid(2) [ waitid(2) man page is the same as wait(2) ].
>
> When I looked at the relevant file "/usr/include/bits/siginfo.h" there were two
> more values for si_code:
>
> CLD_DUMPED, /* Child terminated abnormally. */
> CLD_TRAPPED, /* Traced child has trapped. */
>
> I was getting CLD_DUMPED value along with core dumps so I state that as an
> example in the patch. I'm not sure about how a process can get CLD_TRAPPED but
> I include it for completeness' sake.
>
> The diff applies to today's git version.
Thanks for spotting that. I tweaked your patch a little to make the
text as follows:
[[
.B CLD_DUMPED
(child killed by signal, and dumped core);
.B CLD_TRAPPED
(traced child has trapped); or
]]
The change will be in man-pages-3.22.
Thanks,
Michael
> ============================== diff ======================
>
> diff --git a/man2/wait.2 b/man2/wait.2
> index c95ff2c..4028fae 100644
> --- a/man2/wait.2
> +++ b/man2/wait.2
> @@ -310,6 +310,10 @@ Set to one of:
> .BR _exit (2));
> .B CLD_KILLED
> (child killed by signal);
> +.B CLD_DUMPED
> +(child terminated abnormally, ie. core dump);
> +.B CLD_TRAPPED
> +(child has trapped while being traced);
> .B CLD_STOPPED
> (child stopped by signal); or
> .B CLD_CONTINUED
>
> ==========================================================
>
>
> --
> Gokdeniz Karadag
>
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-21 4:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 16:11 incomplete si_codes for waitid(2) [patch available] Gokdeniz Karadag
[not found] ` <49E758A8.1080406-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-04-21 4:45 ` Michael Kerrisk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox