[Glibc-bsd-commits] r1591 - trunk/glibc-2.3-head/sysdeps/kfreebsd

Petr Salinger ps-guest at costa.debian.org
Mon Jun 12 14:41:32 UTC 2006


Author: ps-guest
Date: 2006-06-12 14:41:31 +0000 (Mon, 12 Jun 2006)
New Revision: 1591

Modified:
   trunk/glibc-2.3-head/sysdeps/kfreebsd/clone.c
Log:
* 2nd part of CLONE_SYSVSEM addition


Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/clone.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/clone.c	2006-06-12 13:25:11 UTC (rev 1590)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/clone.c	2006-06-12 14:41:31 UTC (rev 1591)
@@ -56,7 +56,7 @@
 
   /* This implementation of clone() does not support all Linux flags.  */
   if (flags & ~(CSIGNAL | CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND
-		| CLONE_VFORK))
+		| CLONE_VFORK | CLONE_SYSVSEM))
     {
       __set_errno (EINVAL);
       return -1;
@@ -81,6 +81,10 @@
        will set their umask and cwd before spawning threads.  */
     ;
 
+  if (flags & CLONE_SYSVSEM)
+    /* Ignore this; it has been introduced into linuxthreads in post 2.4 glibc */
+    ;
+
   if (!(flags & CLONE_FILES))
     rfork_flags |= RFFDG;
 




More information about the Glibc-bsd-commits mailing list