Closed tyong920 closed 2 years ago
As per Python official document on os.closerange
os.closerange
Close all file descriptors from fd_low (inclusive) to fd_high (exclusive), ignoring errors. Equivalent to (but much faster than):
for fd in range(fd_low, fd_high): try: os.close(fd) except OSError: pass
It's better replace with it. https://github.com/Supervisor/supervisor/blob/906d2adec9bd27d54cdff48bdd12f6cb42bf9546/supervisor/options.py#L1329-L1333
Continued in #1541
As per Python official document on
os.closerange
Close all file descriptors from fd_low (inclusive) to fd_high (exclusive), ignoring errors. Equivalent to (but much faster than):
It's better replace with it. https://github.com/Supervisor/supervisor/blob/906d2adec9bd27d54cdff48bdd12f6cb42bf9546/supervisor/options.py#L1329-L1333