[RFC] Patch implementing EXECUTE_COMMAND_LINE

Gerald Pfeifer gerald@pfeifer.com
Sun May 17 21:10:00 GMT 2009


On Sun, 17 May 2009, Steve Kargl wrote:
> Are you sure that this is asynchronous?  FreeBSD's manpage
> indicates that system(3) is synchronous. 
> 
> man 3 system
> 
>      The system() function hands the argument string to the command inter-
>      preter sh(1).  The calling process waits for the shell to finish execut-
>      ing the command, ignoring SIGINT and SIGQUIT, and blocking SIGCHLD.

Same on GNU/Linux with glibc:

  DESCRIPTION
       system()  executes a command specified in command by calling /bin/sh -c
       command, and returns after the command has been completed.  During exe-
       cution  of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT
       will be ignored.

Gerald



More information about the Gcc-patches mailing list