utils.py 文件源码

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

项目:isar 作者: ilbers 项目源码 文件源码
def set_process_name(name):
    from ctypes import cdll, byref, create_string_buffer
    # This is nice to have for debugging, not essential
    try:
        libc = cdll.LoadLibrary('libc.so.6')
        buf = create_string_buffer(bytes(name, 'utf-8'))
        libc.prctl(15, byref(buf), 0, 0, 0)
    except:
        pass

# export common proxies variables from datastore to environment
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号