[PATCH] Handle case where an AI sends an invalid message and then crashes
If an AI sent a bad move and then crashed, a SIGPIPE would be reported rather than the AI's bad move. NOTE: There is an issue with Program::Running, because the segfaulted AI still returns 'true', which leads to confusion in handling SIGPIPE. Should probably handle segfaulting AIs better. Then again, people should probably not make segfaulting AIs. [SZM]
Showing
- judge/manager/ai_controller.cpp 2 additions, 1 deletionjudge/manager/ai_controller.cpp
- judge/manager/ai_controller.h 2 additions, 2 deletionsjudge/manager/ai_controller.h
- judge/manager/controller.cpp 5 additions, 1 deletionjudge/manager/controller.cpp
- judge/manager/controller.h 2 additions, 2 deletionsjudge/manager/controller.h
- judge/manager/game.cpp 109 additions, 46 deletionsjudge/manager/game.cpp
- judge/manager/game.h 2 additions, 1 deletionjudge/manager/game.h
- judge/manager/human_controller.h 1 addition, 1 deletionjudge/manager/human_controller.h
- judge/manager/main.cpp 2 additions, 57 deletionsjudge/manager/main.cpp
- judge/manager/network_controller.h 3 additions, 3 deletionsjudge/manager/network_controller.h
- judge/manager/program.cpp 1 addition, 0 deletionsjudge/manager/program.cpp
Please register or sign in to comment