Disassociate parts of the process execution context.

    :param flags int: A bitmask that specifies which parts of the execution
        context should be unshared.

def unshare(flags):
    """
    Disassociate parts of the process execution context.

    :param flags int: A bitmask that specifies which parts of the execution
        context should be unshared.
    """
    res = lib.unshare(flags)
    if res != 0:
        _check_error(ffi.errno)