Date: Fri, 10 Dec 2010 02:35:00 -0500 (EST) From: Garrett Wollman <wollman@hergotha.csail.mit.edu> To: amvandemore@gmail.com Cc: stable@freebsd.org Subject: Re: /sbin/reboot Message-ID: <201012100735.oBA7Z0S1005352@hergotha.csail.mit.edu> In-Reply-To: <AANLkTikgGSyRLnDS6Oihw2u3SYjeZRrQWdSa9Z4t7UAE@mail.gmail.com> References: <AANLkTimEvQ7amDeFE9eG%2BO9G664jXAWb9hhSt0bU%2B3DR@mail.gmail.com> <20101210060335.BCDCC1CC12@ptavv.es.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012100735.oBA7Z0S1005352>