huanghaoa

Results 1 comments of huanghaoa

read带有阻塞,所以read(cgi_output[0])本来就是等待子进程(cgi)已经确定了子进程先执行,至于waitpid就是简单回收子进程防止僵尸进程