atexit用于注册进程推出的回调函数,以处理结束进程前的一些工作。 linux之atexit函数 【linux之atexit函数】 1、什么是atexit函数? 2、流程图 3、后注册的函数会被插入到前排,从而被先调用。