fixed ramlimit2
This commit is contained in:
parent
a999e4b233
commit
fe455d2938
1 changed files with 2 additions and 1 deletions
|
@ -179,8 +179,9 @@ def create(title=None, size=(0,0), icon=None, resizable=False, noframe=False):
|
|||
|
||||
def ramLimit(memory_limit):
|
||||
if not nonwin32api:
|
||||
job_name = ''
|
||||
breakaway = 'silent'
|
||||
hjob = _w32j.CreateJobObject(None,'')
|
||||
hjob = _w32j.CreateJobObject(None,job_name)
|
||||
if breakaway:
|
||||
info = _w32j.QueryInformationJobObject(hjob,_w32j.JobObjectExtendedLimitInformation)
|
||||
if breakaway=='silent':info['BasicLimitInformation']['LimitFlags']|=(_w32j.JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue