lkml.org 
[lkml]   [2009]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 0/7][v8] Container-init signal semantics
    From
    Date
    On Sat, 2009-03-07 at 20:43 +0100, Daniel Lezcano wrote:
    > case LINUX_REBOOT_CMD_HALT:
    > - kernel_halt();
    > - unlock_kernel();
    > - do_exit(0);
    > + if (power_off_pid_ns(current->nsproxy->pid_ns)) {
    > + kernel_halt();
    > + unlock_kernel();
    > + do_exit(0);
    > + }

    Even if current will get SIGKILLed when zap_pid_ns_processes() is
    called, I see no reason it doesn't call do_exit(0).

    > break;
    >
    > case LINUX_REBOOT_CMD_POWER_OFF:
    > - kernel_power_off();
    > - unlock_kernel();
    > - do_exit(0);
    > + if (power_off_pid_ns(current->nsproxy->pid_ns)) {
    > + kernel_power_off();
    > + unlock_kernel();
    > + do_exit(0);
    > + }

    Same.

    > break;
    >
    --
    Gregory Kurz gkurz@fr.ibm.com
    Software Engineer @ IBM/Meiosys http://www.ibm.com
    Tel +33 (0)534 638 479 Fax +33 (0)561 400 420

    "Anarchy is about taking complete responsibility for yourself."
    Alan Moore.



    \
     
     \ /
      Last update: 2009-03-07 20:55    [W:0.039 / U:63.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site