Dick Hoogendijk wrote:
> Dick Hoogendijk <dick at nagual.nl> writes:
> 
> 
>> I don't want to believe it is 'as safe as' I'd like to know for sure
>> from someone who knows.
> 
> Reading this back I find this sounds too harsh. I don't mean to say
> you don't know what you're talking about. You don't work at sun for
> nothing, I guess ;-) But I do like to know what happens under the
> hood. What's the shutdown process for sys-suspend compared to init 5?

The source doesn't seem to be in the source browser, but the tarball is
available at:
http://dlc.sun.com/osol/jds/downloads/extras/sys-suspend/gnome-sys-suspend-0.5.tar.bz2

For power off it appears to do:
        /*
         * Send SIGPWR signal to the init process to shut down the system.
         */
        if (kill (1, SIGPWR) == -1)
                uadmin(A_SHUTDOWN, AD_POWEROFF, 0);

I don't see shutdown other than power off in there.

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to