Commit da5d0b9b authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2916] reset global IOService to NULL at end of test for safer operation

parent 3f5fb376
......@@ -76,6 +76,10 @@ protected:
~LocalSocketTest() {
alarm(0);
// reset the global to NULL to detect any invalid access to freed
// io_service (this shouldn't happen, so we don't change stopIOService
// itself)
g_io_service_ = NULL;
std::signal(SIGALRM, prev_handler_);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment