可以 man system 自己查看的
NAME
system - execute a shell command
SYNOPSIS
#include <stdlib.h>
int system(const char *command);
DESCRIPTION
system() executes a command specified in command by calling /bin/sh -c command, and
returns after the command has been completed. During execution of the command,
SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
貌似主程序会阻塞等待子程序返回