NYC's Blog - Linux进程控制之wait类函数 的评论 http://niyanchun.com/wait-in-linux.html 我们已经知道,fork出来的子进程和父进程谁先运行是随机的,那我们如果控制呢?可以使用wait类函数。#include <sys/wait.h>pid_t wait(int *sta...