def METHOD_NAME(lock, conn):
    """Dummy server process
    :param lock: A multiprocessing.Lock
    :param conn: A multiprocessing.Pipe
    """
    while True:
        # Avoid busy waiting
        conn.poll(None)
        data = conn.recv()
        lock.acquire()
        if data[0] == 0:
            conn.close()
            lock.release()
            sys.exit()
        if data[0] == 1:
            raise Exception("Server process intentionally killed by exception")
        lock.release()