Backed out changeset 489046125fa6 (bug 897683) due to Ubuntu debug Jetpack perma-orange.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user