conf: waitpid needs a cleared status

It might not change the status when the process has changed state.
This commit is contained in:
Wim Taymans 2021-08-18 09:45:15 +02:00
parent 0bad741d45
commit 2d4ded2384

View file

@ -586,7 +586,7 @@ static int do_exec(struct pw_context *context, const char *key, const char *args
} }
} }
else { else {
int status; int status = 0;
res = waitpid(pid, &status, WNOHANG); res = waitpid(pid, &status, WNOHANG);
pw_log_info("exec got pid %d res:%d status:%d", pid, res, status); pw_log_info("exec got pid %d res:%d status:%d", pid, res, status);
} }