yyzybb537 / libgo

Go-style concurrency in C++11
MIT License
3.22k stars 758 forks source link

为何需要hook fclose? #195

Open dearbird opened 5 years ago

dearbird commented 5 years ago

int fclose(FILE* fp) { if (!fclose_f) initHook(); int fd = fileno(fp); HookHelper::getInstance().OnClose(fd); return fclose_f(fp); }

为何单独hook了这个文件关闭函数?