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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/27/2015 07:25 PM, Heinrich Schuchardt wrote:
> According to fork.2:
> On failure, -1 is returned in the parent.

Thanks, Heinrich. Applied.

Cheers,

Michael


> 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 */
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux