【发布时间】:2020-05-18 13:32:12
【问题描述】:
union wait wstat;
pid_t pid;
while(1)
{
pid = wait3(&wstat,WNOHANG,(struct rusage *)NULL);
if(pid == 0 )
return;
else if(pid == -1)
return;
else
{
fprintf(stderr,"\nProcess with PID : %d exited with return value: %d\n",pid,wstat.w_retcode);
deleteJob(pid);
}
}
我正在尝试在我想使用等待联合的地方制作 unix shell,但我无法使用它,因为我收到错误
wait' isn't known
warning: implicit declaration of functionwait3'的存储大小
【问题讨论】:
-
你用了什么
#includes?!
标签: c linux posix ubuntu-18.04