• Andrew Morton's avatar
    clone: prepare to recycle CLONE_STOPPED · bdff746a
    Andrew Morton authored
    Ulrich says that we never used this clone flags and that nothing should be
    using it.
    
    As we're down to only a single bit left in clone's flags argument, let's add a
    warning to check that no userspace is actually using it.  Hopefully we will
    be able to recycle it.
    
    Roland said:
    
      CLONE_STOPPED was previously used by some NTPL versions when under
      thread_db (i.e.  only when being actively debugged by gdb), but not for a
      long time now, and it never worked reliably when it was used.  Removing it
      seems fine to me.
    
    [akpm@linux-foundation.org: it looks like CLONE_DETACHED is being used]
    Cc: Ulrich Drepper <drepper@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Roland McGrath <roland@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    bdff746a
fork.c 43.2 KB