哪位大侠指点一下。
shutdown()?
No, shutdown() is a tcpip function. Try sysmgr_reboot().
lib/shutdown里有一个同名函数,定义为void shutdown(int type, int flags).
若type定义为SHUTDOWN_REBOOT的话,最后也会调用sysmgr_reboot(),
好处是调用sysmgr_reboot()之前会向所有的process发送SIGTERM.
多谢二位大侠,搞定了。
哪位大侠指点一下。
shutdown()?
No, shutdown() is a tcpip function. Try sysmgr_reboot().
lib/shutdown里有一个同名函数,定义为void shutdown(int type, int flags).
若type定义为SHUTDOWN_REBOOT的话,最后也会调用sysmgr_reboot(),
好处是调用sysmgr_reboot()之前会向所有的process发送SIGTERM.
多谢二位大侠,搞定了。