Bug 979741 - Use MOZ_DEBUG_CHILD_PROCESS environment variable for processes forked from Nuwa. r=khuey

This commit is contained in:
Cervantes Yu 2014-03-05 20:43:06 +08:00
parent 49fc2edda2
commit 3b8647cc68

View File

@ -1561,10 +1561,10 @@ ForkIPCProcess() {
CloseAllProtoSockets(sProtoFdInfos, sProtoFdInfosSize);
} else {
// in the child
#ifdef NUWA_DEBUG_CHILD_PROCESS
fprintf(stderr, "\n\n DEBUG ME @%d\n\n", getpid());
sleep(15);
#endif
if (getenv("MOZ_DEBUG_CHILD_PROCESS")) {
printf("\n\nNUWA CHILDCHILDCHILDCHILD\n debug me @ %d\n\n", getpid());
sleep(30);
}
ReplaceSignalFds();
ReplaceIPC(sProtoFdInfos, sProtoFdInfosSize);
RecreateEpollFds();