_exit与static对象

经过测试 调用_exit退出的是不会调用static对象相关的析构

而exit退出的是会调用static对象的析构

2022-01-08最新测试 exit退出不会调用local object的析构

参考网站https://blog.csdn.net/drdairen/article/details/51896141

https://docs.microsoft.com/en-us/previous-versions/6wdz5232(v=vs.140)#:~:text=The%20exit%2C%20_Exit%20and%20_exit%20functions%20terminate%20the,all%20file%20buffers%20before%20it%20terminates%20the%20process.

posted @ 2022-01-06 19:28  大老虎打老虎  阅读(56)  评论(0编辑  收藏  举报