We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
未在其他系统测试。 已在 Linux 下测试。
import sys from cyaron import IO p = IO(None, None) p.output_gen(f'"{sys.executable}" test.py', time_limit=1.0)
# test.py import sys while True: print("End", file=sys.stderr)
观察到程序不断输出 End,证明程序并未在超时后中止。
End
相关链接:https://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true
按照链接中内容,超时后中止的只有 Shell,而没有在 Shell 上运行的子进程。
The text was updated successfully, but these errors were encountered:
已知的解决方法有两种:
shell=True
TimeoutExpired
psutil
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
未在其他系统测试。已在 Linux 下测试。观察到程序不断输出
End
,证明程序并未在超时后中止。相关链接:https://stackoverflow.com/questions/4789837/how-to-terminate-a-python-subprocess-launched-with-shell-true
按照链接中内容,超时后中止的只有 Shell,而没有在 Shell 上运行的子进程。
The text was updated successfully, but these errors were encountered: