lkml.org 
[lkml]   [2006]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 26/35] Add Xen subarch reboot support
    Hi!

    > > +
    > > +/* Ignore multiple shutdown requests. */
    > > +static int shutting_down = SHUTDOWN_INVALID;
    > > +static void __shutdown_handler(void *unused);
    > > +static DECLARE_WORK(shutdown_work, __shutdown_handler, NULL);
    > > +
    > > +static int shutdown_process(void *__unused)
    > > +{
    > > + static char *envp[] = { "HOME=/", "TERM=linux",
    > > + "PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL };
    > > + static char *poweroff_argv[] = { "/sbin/poweroff", NULL };
    >
    > This should be configurable, probably in a sysctl

    Actually we have similar code in sparc and acpi parts, IIRC. We
    probably want to have one, common, shut-me-off routine.

    --
    Thanks for all the (sleeping) penguins.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-12 23:51    [W:4.544 / U:0.448 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site