重启 linux实用程序和c库函数功能之间有什么区别吗?
发布于 2014-01-02 13:11:14
该实用工具还至少执行一次sync()和短睡眠,以确保磁盘缓存被刷新。
sync()
我未能通过快速的谷歌找到Linux重启命令的源代码,但下面是OpenBSD的版本:http://ftp.cc.uoc.gr/mirrors/OpenBSD/src/sbin/reboot/reboot.c
https://stackoverflow.com/questions/20882116
相似问题