Bug 989042 - Use waitid() only on Gonk; unbreak BSD build. r=bsmedberg

This commit is contained in:
Jed Davis 2014-04-03 16:19:00 -04:00
parent a03dc8fbb8
commit 99f9d84b64

View File

@ -15,7 +15,7 @@
# include <sys/resource.h>
#endif
#ifdef XP_UNIX
#ifdef MOZ_WIDGET_GONK
#include <sys/types.h>
#include <sys/wait.h>
#endif
@ -977,7 +977,7 @@ ContentParent::SetPriorityAndCheckIsAlive(ProcessPriority aPriority)
// direct child because of Nuwa this will fail with ECHILD, and we
// need to assume the child is alive in that case rather than
// assuming it's dead (as is otherwise a reasonable fallback).
#ifdef XP_UNIX
#ifdef MOZ_WIDGET_GONK
siginfo_t info;
info.si_pid = 0;
if (waitid(P_PID, Pid(), &info, WNOWAIT | WNOHANG | WEXITED) == 0