Re: [PATCH] system.3: mention that 'errno' is set on error

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

 



On 9/18/18 11:59 PM, Arkadiusz Drabczyk wrote:
> Corresponding system.3p already mentions that.
> Tested with glibc and musl.

Thanks for the patch, Arkadiusz. Applied. Sorry for the delay
in responding...

Cheers,

Michael

> ---
>  man3/system.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man3/system.3 b/man3/system.3
> index 74882fa..32a4a86 100644
> --- a/man3/system.3
> +++ b/man3/system.3
> @@ -82,7 +82,7 @@ or 0 if no shell is available.
>  .IP *
>  If a child process could not be created,
>  or its status could not be retrieved,
> -the return value is \-1.
> +the return value is \-1 and errno is set to indicate the error.
>  .IP *
>  If a shell could not be executed in the child process,
>  then the return value is as though the child shell terminated by calling
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[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