[PATCH 1/1] futex.2: fork fails with -1

From: Heinrich Schuchardt <hidden>
Date: 2015-02-27 18:25:27
Subsystem: the rest · Maintainer: Linus Torvalds

According to fork.2:
On failure, -1 is returned in the parent.

Signed-off-by: Heinrich Schuchardt <redacted>
---
 man2/futex.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/futex.2 b/man2/futex.2
index 6c02da7..530e302 100644
--- a/man2/futex.2
+++ b/man2/futex.2
@@ -1579,7 +1579,7 @@ main(int argc, char *argv[])
        mappping */
 
     childPid = fork();
-    if (childPid == 1)
+    if (childPid == \-1)
         errExit("fork");
 
     if (childPid == 0) {        /* Child */
-- 
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help