Fix build error with GCC v7.3, wait3() takes an int *status
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
9abddd6b55
commit
aeba1d31b7
@ -2171,7 +2171,7 @@ void reapchild()
|
|||||||
(void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
|
(void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */
|
||||||
wait ((int *)0);
|
wait ((int *)0);
|
||||||
#else
|
#else
|
||||||
union wait status;
|
int status;
|
||||||
|
|
||||||
while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
|
while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user