summaryrefslogtreecommitdiff
path: root/src/fdevent.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-04-28 22:34:42 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-05-03 23:11:35 -0400
commitb5d4f86fe484fd5a8e14dfcc6d97d976f89e57a7 (patch)
treea1ec2f6267451256956052a3663f0d5e042f3a77 /src/fdevent.c
parent0d0f7852302af38ea1a1f764e206e75e1201ae07 (diff)
downloadlighttpd-git-b5d4f86fe484fd5a8e14dfcc6d97d976f89e57a7.tar.gz
[core] return pid_t from fdevent_waitpid()
Diffstat (limited to 'src/fdevent.c')
-rw-r--r--src/fdevent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fdevent.c b/src/fdevent.c
index 6fde8d97..c3d70340 100644
--- a/src/fdevent.c
+++ b/src/fdevent.c
@@ -601,14 +601,14 @@ int fdevent_kill (pid_t pid, int sig) {
#include "sys-wait.h"
-int fdevent_waitpid(pid_t pid, int * const status, int nb) {
+pid_t fdevent_waitpid(pid_t pid, int * const status, int nb) {
const int flags = nb ? WNOHANG : 0;
pid_t rv;
do { rv = waitpid(pid, status, flags); } while (-1 == rv && errno == EINTR);
return rv;
}
-int fdevent_waitpid_intr(pid_t pid, int * const status) {
+pid_t fdevent_waitpid_intr(pid_t pid, int * const status) {
return waitpid(pid, status, 0);
}