* [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
@ 2015-02-27 0:41 Josh Triplett
2015-02-27 6:42 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 7+ messages in thread
From: Josh Triplett @ 2015-02-27 0:41 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Normally, system calls return EINVAL for flags they don't support.
Explicitly document that clone does *not* produce an error for these two
obsolete flags.
Signed-off-by: Josh Triplett <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
---
man2/clone.2 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/man2/clone.2 b/man2/clone.2
index 91c3684..10cef7d 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -534,7 +534,8 @@ This is good for hacking the system, but otherwise
of not much use.
Since 2.3.21 this flag can be
specified only by the system boot process (PID 0).
-It disappeared in Linux 2.5.16.
+It disappeared in Linux 2.5.16. Since then, the kernel silently ignores it
+without error.
.TP
.BR CLONE_PTRACE " (since Linux 2.2)"
If
@@ -599,7 +600,8 @@ This flag was
from Linux 2.6.25 onward,
and was
.I removed
-altogether in Linux 2.6.38.
+altogether in Linux 2.6.38. Since then, the kernel silently ignores it without
+error.
.\" glibc 2.8 removed this defn from bits/sched.h
.TP
.BR CLONE_SYSVSEM " (since Linux 2.5.10)"
--
2.1.4
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
2015-02-27 0:41 [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED Josh Triplett
@ 2015-02-27 6:42 ` Michael Kerrisk (man-pages)
[not found] ` <54F011E4.1020502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-27 6:42 UTC (permalink / raw)
To: Josh Triplett
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
On 02/27/2015 01:41 AM, Josh Triplett wrote:
> Normally, system calls return EINVAL for flags they don't support.
> Explicitly document that clone does *not* produce an error for these two
> obsolete flags.
Thanks, Josh! Applied.
Cheers,
Michael
> Signed-off-by: Josh Triplett <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
> ---
> man2/clone.2 | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/man2/clone.2 b/man2/clone.2
> index 91c3684..10cef7d 100644
> --- a/man2/clone.2
> +++ b/man2/clone.2
> @@ -534,7 +534,8 @@ This is good for hacking the system, but otherwise
> of not much use.
> Since 2.3.21 this flag can be
> specified only by the system boot process (PID 0).
> -It disappeared in Linux 2.5.16.
> +It disappeared in Linux 2.5.16. Since then, the kernel silently ignores it
> +without error.
> .TP
> .BR CLONE_PTRACE " (since Linux 2.2)"
> If
> @@ -599,7 +600,8 @@ This flag was
> from Linux 2.6.25 onward,
> and was
> .I removed
> -altogether in Linux 2.6.38.
> +altogether in Linux 2.6.38. Since then, the kernel silently ignores it without
> +error.
> .\" glibc 2.8 removed this defn from bits/sched.h
> .TP
> .BR CLONE_SYSVSEM " (since Linux 2.5.10)"
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
[not found] ` <54F011E4.1020502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-02-27 16:31 ` josh-iaAMLnmF4UmaiuxdJuQwMA
2015-03-02 16:27 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 7+ messages in thread
From: josh-iaAMLnmF4UmaiuxdJuQwMA @ 2015-02-27 16:31 UTC (permalink / raw)
To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
On Fri, Feb 27, 2015 at 07:42:44AM +0100, Michael Kerrisk (man-pages) wrote:
> On 02/27/2015 01:41 AM, Josh Triplett wrote:
> > Normally, system calls return EINVAL for flags they don't support.
> > Explicitly document that clone does *not* produce an error for these two
> > obsolete flags.
>
> Thanks, Josh! Applied.
Doesn't appear to be in the current git repository.
- Josh Triplett
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
2015-02-27 16:31 ` josh-iaAMLnmF4UmaiuxdJuQwMA
@ 2015-03-02 16:27 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkjCvzeo+tHUW+mwL+ptdCX7k=j8fmRX6OtLfFM9HVXJjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-02 16:27 UTC (permalink / raw)
To: Josh Triplett; +Cc: linux-man
On 27 February 2015 at 17:31, <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org> wrote:
> On Fri, Feb 27, 2015 at 07:42:44AM +0100, Michael Kerrisk (man-pages) wrote:
>> On 02/27/2015 01:41 AM, Josh Triplett wrote:
>> > Normally, system calls return EINVAL for flags they don't support.
>> > Explicitly document that clone does *not* produce an error for these two
>> > obsolete flags.
>>
>> Thanks, Josh! Applied.
>
> Doesn't appear to be in the current git repository.
Pushed now, Josh. (I needed to get another release out of the way first.)
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
[not found] ` <CAKgNAkjCvzeo+tHUW+mwL+ptdCX7k=j8fmRX6OtLfFM9HVXJjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-03-02 16:40 ` josh-iaAMLnmF4UmaiuxdJuQwMA
2015-03-03 7:02 ` Michael Kerrisk (man-pages)
0 siblings, 1 reply; 7+ messages in thread
From: josh-iaAMLnmF4UmaiuxdJuQwMA @ 2015-03-02 16:40 UTC (permalink / raw)
To: Michael Kerrisk (man-pages); +Cc: linux-man
On Mon, Mar 02, 2015 at 05:27:38PM +0100, Michael Kerrisk (man-pages) wrote:
> On 27 February 2015 at 17:31, <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org> wrote:
> > On Fri, Feb 27, 2015 at 07:42:44AM +0100, Michael Kerrisk (man-pages) wrote:
> >> On 02/27/2015 01:41 AM, Josh Triplett wrote:
> >> > Normally, system calls return EINVAL for flags they don't support.
> >> > Explicitly document that clone does *not* produce an error for these two
> >> > obsolete flags.
> >>
> >> Thanks, Josh! Applied.
> >
> > Doesn't appear to be in the current git repository.
>
> Pushed now, Josh. (I needed to get another release out of the way first.)
No problem; thanks for the update.
Related issue: the errors section of clone.2 claims it'll return EPERM
for CLONE_PID by something other than PID 0 (meaning, outside the
kernel), but that doesn't actually happen. Should that be dropped? (I
can send a patch if so.)
- Josh Triplett
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
2015-03-02 16:40 ` josh-iaAMLnmF4UmaiuxdJuQwMA
@ 2015-03-03 7:02 ` Michael Kerrisk (man-pages)
[not found] ` <54F55C7F.10909-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-03 7:02 UTC (permalink / raw)
To: josh-iaAMLnmF4UmaiuxdJuQwMA
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man
Hi Josh,
On 03/02/2015 05:40 PM, josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org wrote:
> On Mon, Mar 02, 2015 at 05:27:38PM +0100, Michael Kerrisk (man-pages) wrote:
>> On 27 February 2015 at 17:31, <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org> wrote:
>>> On Fri, Feb 27, 2015 at 07:42:44AM +0100, Michael Kerrisk (man-pages) wrote:
>>>> On 02/27/2015 01:41 AM, Josh Triplett wrote:
>>>>> Normally, system calls return EINVAL for flags they don't support.
>>>>> Explicitly document that clone does *not* produce an error for these two
>>>>> obsolete flags.
>>>>
>>>> Thanks, Josh! Applied.
>>>
>>> Doesn't appear to be in the current git repository.
>>
>> Pushed now, Josh. (I needed to get another release out of the way first.)
>
> No problem; thanks for the update.
>
> Related issue: the errors section of clone.2 claims it'll return EPERM
> for CLONE_PID by something other than PID 0 (meaning, outside the
> kernel), but that doesn't actually happen. Should that be dropped? (I
> can send a patch if so.)
I'd take a patch to fix that. (But note, if this is kernel behavior
that has changed over time, it would be valuable to document when
the change occurred.)
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 7+ messages in thread
* Re: [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED
[not found] ` <54F55C7F.10909-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2015-03-03 8:13 ` Josh Triplett
0 siblings, 0 replies; 7+ messages in thread
From: Josh Triplett @ 2015-03-03 8:13 UTC (permalink / raw)
To: Michael Kerrisk (man-pages); +Cc: linux-man
On Tue, Mar 03, 2015 at 08:02:23AM +0100, Michael Kerrisk (man-pages) wrote:
> Hi Josh,
>
> On 03/02/2015 05:40 PM, josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org wrote:
> > On Mon, Mar 02, 2015 at 05:27:38PM +0100, Michael Kerrisk (man-pages) wrote:
> >> On 27 February 2015 at 17:31, <josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org> wrote:
> >>> On Fri, Feb 27, 2015 at 07:42:44AM +0100, Michael Kerrisk (man-pages) wrote:
> >>>> On 02/27/2015 01:41 AM, Josh Triplett wrote:
> >>>>> Normally, system calls return EINVAL for flags they don't support.
> >>>>> Explicitly document that clone does *not* produce an error for these two
> >>>>> obsolete flags.
> >>>>
> >>>> Thanks, Josh! Applied.
> >>>
> >>> Doesn't appear to be in the current git repository.
> >>
> >> Pushed now, Josh. (I needed to get another release out of the way first.)
> >
> > No problem; thanks for the update.
> >
> > Related issue: the errors section of clone.2 claims it'll return EPERM
> > for CLONE_PID by something other than PID 0 (meaning, outside the
> > kernel), but that doesn't actually happen. Should that be dropped? (I
> > can send a patch if so.)
>
> I'd take a patch to fix that. (But note, if this is kernel behavior
> that has changed over time, it would be valuable to document when
> the change occurred.)
The manpage already documents that earlier, when mentioning CLONE_PID:
CLONE_PID (obsolete)
If CLONE_PID is set, the child process is created with the same
process ID as the calling process. This is good for hacking the
system, but otherwise of not much use. Since 2.3.21 this flag
can be specified only by the system boot process (PID 0). It
disappeared in Linux 2.5.16.
- Josh Triplett
--
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] 7+ messages in thread
end of thread, other threads:[~2015-03-03 8:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 0:41 [PATCH] clone.2: Document that clone silently ignores CLONE_PID and CLONE_STOPPED Josh Triplett
2015-02-27 6:42 ` Michael Kerrisk (man-pages)
[not found] ` <54F011E4.1020502-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-02-27 16:31 ` josh-iaAMLnmF4UmaiuxdJuQwMA
2015-03-02 16:27 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAkjCvzeo+tHUW+mwL+ptdCX7k=j8fmRX6OtLfFM9HVXJjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-02 16:40 ` josh-iaAMLnmF4UmaiuxdJuQwMA
2015-03-03 7:02 ` Michael Kerrisk (man-pages)
[not found] ` <54F55C7F.10909-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-03-03 8:13 ` Josh Triplett
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 NNTP newsgroup(s).