Skip to content

Conversation

aberter0x3f
Copy link
Contributor

之前版本那个 watcher 在 Mac OS 上挂掉的原因找到了,fclose stdio 流似乎是未定义行为.改为重定向到 /dev/null 即可在 mac 上通过 watcher test.

同时,之前版本的 watcher 记时有个小问题,当题目的 time limit 过小时,由于 rlimit 的 CPU 限制只能上取整到整数秒,就会出现「rlimit 的 CPU 时间限制」>「judging thread 的 kill 时间」,从而返回「程序无法运行,watcher time limit exceed 的结果」.把 judging thread kill 时间也上取整一下就好了.

@aberter0x3f
Copy link
Contributor Author

@aberter0x3f
Copy link
Contributor Author

Is it time to review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant