Bug 902208 - Handle SIGINT in child processes (r=ted)

This commit is contained in:
Bill McCloskey 2013-08-14 14:48:32 -07:00
Родитель 4265796bb6
Коммит 59df15a874
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -246,6 +246,15 @@ void InstallSignalHandlers(const char *ProgramName)
sigaction(SIGFPE, &sa, &osa);
#endif
if (XRE_GetProcessType() == GeckoProcessType_Content) {
/*
* If the user is debugging a Gecko parent process in gdb and hits ^C to
* suspend, a SIGINT signal will be sent to the child. We ignore this signal
* so the child isn't killed.
*/
signal(SIGINT, SIG_IGN);
}
#if defined(DEBUG) && defined(LINUX)
const char *memLimit = PR_GetEnv("MOZ_MEM_LIMIT");
if (memLimit && *memLimit)