зеркало из https://github.com/mozilla/gecko-dev.git
Bug 902208 - Handle SIGINT in child processes (r=ted)
This commit is contained in:
Родитель
4265796bb6
Коммит
59df15a874
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче