]> granicus.if.org Git - strace/commitdiff
2002-12-16 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 17 Dec 2002 04:50:44 +0000 (04:50 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 17 Dec 2002 04:50:44 +0000 (04:50 +0000)
* process.c [LINUX] (wait4_options): Fix __WCLONE value.  Add
__WNOTHREAD and __WALL.

process.c

index 6a68316d0d13245f0323b71eb6d4a7dc133f1949..e30fd1cf3540d9eeebe48cfe9c8ae604f1cf9e64 100644 (file)
--- a/process.c
+++ b/process.c
@@ -1447,8 +1447,14 @@ struct tcb *tcp;
 }
 
 #ifdef LINUX
+#ifndef __WNOTHREAD
+#define __WNOTHREAD    0x20000000
+#endif
+#ifndef __WALL
+#define __WALL         0x40000000
+#endif
 #ifndef __WCLONE
-#define __WCLONE       0x8000000
+#define __WCLONE       0x80000000
 #endif
 #endif /* LINUX */
 
@@ -1474,6 +1480,12 @@ static struct xlat wait4_options[] = {
 #endif
 #ifdef __WCLONE
        { __WCLONE,     "__WCLONE"      },
+#endif
+#ifdef __WALL
+       { __WALL,       "__WALL"        },
+#endif
+#ifdef __WNOTHREAD
+       { __WNOTHREAD,  "__WNOTHREAD"   },
 #endif
        { 0,            NULL            },
 };