8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 14:03:02 +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);
}
/* Check for very specific conditions before we assume the child
did a normal exit. */
if (WIFEXITED(child_exit_status))
return WEXITSTATUS(child_exit_status);
if (WIFEXITED(child_exit_status) && (WEXITSTATUS(child_exit_status) != 0))
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);
return -1;
}