阅读背景:

如何检测Linux关机/重启

来源:互联网 

I'm trying to detect shut down or reboot from Linux in my c program. I found that program can use signal(SIGTERM, handler) (SIGKILL, handler). But these two will trigger if user kill the process with command, too.I'm trying to detect shut down or reboot from L




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

分享到: