blob: 1363c4cbf73f319f47c09f29abbfd8db5785553c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Replace obsolete wait3 by waitpid
--- a/src/main.c
+++ b/src/main.c
@@ -193,8 +193,8 @@
/* handler for reaping children after the fork is done. */
void handle_child_signal()
{
- union wait status;
- while (wait3(&status, WNOHANG, 0) > 0) {}
+ int status;
+ while (waitpid(-1, &status, WNOHANG) > 0) {}
}
/* handler for HUP. reloads the config file. */
|