According to fork.2: On failure, -1 is returned in the parent. Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx> --- 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html