mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* CLONE_DETACHED
@ 2004-01-17  2:17 Andries.Brouwer
  2004-01-17  2:26 ` CLONE_DETACHED Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Andries.Brouwer @ 2004-01-17  2:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

My current version of the clone.2 manual page says

       CLONE_THREAD
              (Linux 2.4 onwards) If  CLONE_THREAD  is  set,  the
              child  is  placed  in  the same thread group as the
              calling process.  Now in 2.6 also  the  meaningless
              CLONE_DETACHED  (introduced in 2.5.32) must be set.

I wonder whether it is too late to remove CLONE_DETACHED entirely.
There are precisely two occurrences: the definition and the check
that it is set when CLONE_THREAD is set. Seems fairly useless.

Andries

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CLONE_DETACHED
  2004-01-17  2:17 CLONE_DETACHED Andries.Brouwer
@ 2004-01-17  2:26 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2004-01-17  2:26 UTC (permalink / raw)
  To: Andries.Brouwer; +Cc: linux-kernel, Linus Torvalds

Andries.Brouwer@cwi.nl wrote:
>
> My current version of the clone.2 manual page says
> 
>        CLONE_THREAD
>               (Linux 2.4 onwards) If  CLONE_THREAD  is  set,  the
>               child  is  placed  in  the same thread group as the
>               calling process.  Now in 2.6 also  the  meaningless
>               CLONE_DETACHED  (introduced in 2.5.32) must be set.
> 
> I wonder whether it is too late to remove CLONE_DETACHED entirely.
> There are precisely two occurrences: the definition and the check
> that it is set when CLONE_THREAD is set. Seems fairly useless.
> 

Changelog says:

ChangeSet 1.1150 2003/08/14 11:11:39 torvalds@home.osdl.org
  Mark CLONE_DETACHED as being irrelevant: it must match CLONE_THREAD.
  
  CLONE_THREAD without CLONE_DETACHED will now return -EINVAL, and
  for a while we will warn about anything that uses it (there are no
  known users, but this will help pinpoint any problems if somebody
  used to care about the invalid combination).


It has been five months; I'd say we could lose it now.  Linus?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-17  2:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-17  2:17 CLONE_DETACHED Andries.Brouwer
2004-01-17  2:26 ` CLONE_DETACHED Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome