阅读背景:

在退出时关闭文件描述符是一个好习惯

来源:互联网 

If for some reason, I discover a fatal situation in my program, and I would like to exit with an error code. Sometimes, the context of the fatal error is outside the scope of other file-descriptors. is it a good practice to close these file descriptors. As far as I know, these files are automatically closed when the process dies.If for some reason, I discover a fatal situatio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: