• Radostin Stoyanov's avatar
    zdtm: Explicitly close opened files · 4416c58e
    Radostin Stoyanov authored
    CPython currently uses a reference-counting scheme with (optional)
    delayed detection of cyclically linked garbage, which collects most
    objects as soon as they become unreachable, but is not guaranteed to
    collect garbage containing circular references.
    
    Some objects contain references to "external" resources such as open
    files. It is understood that these resources are freed when the object
    is garbage-collected, but since garbage collection is not guaranteed to
    happen, such objects also provide an explicit way to release the
    external resource, usually a close() method.
    
    Programs are strongly recommended to explicitly close such objects.
    
    Reference: https://docs.python.org/3.6/reference/datamodel.htmlSigned-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    4416c58e
Name
Last commit
Last update
..
compel Loading commit data...
exhaustive Loading commit data...
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
empty-netns-prep.sh Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
pycriu Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...
zdtm_umount_cgroups Loading commit data...