try:
            pid = os.fork()
            if pid > 0:
                # exit first parent
                sys.exit(0)