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