This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Patch implementing EXECUTE_COMMAND_LINE
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