Re: SYSTEM(3)

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

 



Hello Johnny,

On 11/9/18 12:50 PM, Jonny Grant wrote:
> Hello Michael
> 
> I'm proposing a change below to two man pages.
> 
> execl(3) has NULL listed in that SYNOPSIS, so it would be consistent as 
> if system(3) was also NULL in this example below.
> 
> 
> DESCRIPTION
> The  system()  library  function uses fork(2) to create a child process
> that executes the shell command specified in command using execl(3)  as
>         follows:
> 
>             execl("/bin/sh", "sh", "-c", command, (char *) 0);
>  
> ^ This should be NULL in example as per EXEC(3)?

Yes, I agree it would be more consistent. I made that change.

Thanks,

Michael


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