backup.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:backup 作者: twindb 项目源码 文件源码
def set_open_files_limit():
    """Detect maximum supported number of open file and set it"""
    max_files = getrlimit(RLIMIT_NOFILE)[0]
    while True:
        try:
            setrlimit(RLIMIT_NOFILE, (max_files, max_files))
            max_files += 1
        except ValueError:
            break
    LOG.debug('Setting max files limit to %d', max_files)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号