8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:43:04 +01:00

Simplified code, avoid #ifdef

This commit is contained in:
alexpeshkoff 2008-12-09 15:20:00 +00:00
parent e6816b8e15
commit c4a7181f4c

View File

@ -164,22 +164,10 @@ int UTIL_wait_for_child(pid_t child_pid, const volatile sig_atomic_t& shutting_d
return (errno); return (errno);
} }
/* Check for very specific conditions before we assume the child if (WIFEXITED(child_exit_status))
did a normal exit. */ return WEXITSTATUS(child_exit_status);
if (WIFEXITED(child_exit_status) && (WEXITSTATUS(child_exit_status) != 0)) return -1;
return (WEXITSTATUS(child_exit_status));
if (
#ifndef AIX_PPC
WCOREDUMP(child_exit_status) ||
#endif
WIFSIGNALED(child_exit_status) || !WIFEXITED(child_exit_status))
{
return (-1);
}
return (0);
} }