replace os.fork and os.waitpid to test handler.