Re: /sbin/reboot

看板FB_stable作者時間15年前 (2010/12/10 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/13 (看更多)
In article <AANLkTikgGSyRLnDS6Oihw2u3SYjeZRrQWdSa9Z4t7UAE@mail.gmail.com>, amvandemore@gmail.com writes: >For the correct order, "shutdown -r" calls reboot which calls init which >calls rc.shutdown. No. shutdown(8) sends a SIGINT to init(8), which runs rc.shutdown and then calls reboot(2) as its last act. reboot(8) freezes init(8), then sends a SIGTERM to anything left running, then sends a SIGKILL to anything left running, then calls reboot(2) as its last act. >Doing a shutdown -r is the same as a reboot without the warning to logged in >users and shutdown handles the logging instead of reboot. Not even close. -GAWollman _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1D0Tu_iB (FB_stable)
文章代碼(AID): #1D0Tu_iB (FB_stable)