Backed out changeset 489046125fa6 (bug 897683) due to Ubuntu debug Jetpack perma-orange.

This commit is contained in:
Ryan VanderMeulen
2013-07-25 08:51:50 -04:00
parent 9ff0ca523f
commit 83a175c349
48 changed files with 690 additions and 1447 deletions

View File

@@ -330,9 +330,13 @@ GetExitCodeProcess = GetExitCodeProcessProto(
GetExitCodeProcess.errcheck = ErrCheckBool
def CanCreateJobObject():
# Running firefox in a job (from cfx) hangs on sites using flash plugin
# so job creation is turned off for now. (see Bug 768651).
return False
currentProc = GetCurrentProcess()
if IsProcessInJob(currentProc):
jobinfo = QueryInformationJobObject(HANDLE(0), 'JobObjectExtendedLimitInformation')
limitflags = jobinfo['BasicLimitInformation']['LimitFlags']
return bool(limitflags & JOB_OBJECT_LIMIT_BREAKAWAY_OK) or bool(limitflags & JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK)
else:
return True
### testing functions