|
|
发表于 2005-11-10 12:08:34
|
显示全部楼层
Post by haohao_h
The system() function causes string to be given to the shell
as input, as if string had been typed as a command at a ter-
minal. The invoker waits until the shell has completed, then
returns the exit status of the shell in the format specified
by waitpid(2).
按道理说,它只应该阻塞所在线程,而不会让正在运行 的主进程阻塞!! |
|