mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-26 07:48:18 -05:00
We should be using wait_process(), not waitpid() directly.
This commit is contained in:
@@ -104,7 +104,8 @@ void _exit_cleanup(int code, const char *file, int line)
|
||||
|
||||
if (cleanup_child_pid != -1) {
|
||||
int status;
|
||||
if (waitpid(cleanup_child_pid, &status, WNOHANG) == cleanup_child_pid) {
|
||||
if (wait_process(cleanup_child_pid, &status, WNOHANG)
|
||||
== cleanup_child_pid) {
|
||||
status = WEXITSTATUS(status);
|
||||
if (status > code)
|
||||
code = status;
|
||||
|
||||
Reference in New Issue
Block a user