[lkml]   [2012]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] pidns: reboot_pid_ns: use SEND_SIG_FORCED instead of force_sig()
    cf3f8921 "pidns: add reboot_pid_ns() to handle the reboot syscall"
    uses force_sig() to kill the SIGNAL_UNKILLABLE cinit, this was the
    only choice.

    After 629d362b we can use SEND_SIG_FORCED instead, force_sig() has
    the special semantics and should be avoided if possible.

    Signed-off-by: Oleg Nesterov <>

    diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
    index 57bc1fd..ef35e20 100644
    --- a/kernel/pid_namespace.c
    +++ b/kernel/pid_namespace.c
    @@ -241,7 +241,7 @@ int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd)

    - force_sig(SIGKILL, pid_ns->child_reaper);
    + do_send_sig_info(SIGKILL, SEND_SIG_FORCED, pid_ns->child_reaper, true);


     \ /
      Last update: 2012-04-13 02:47    [W:0.022 / U:105.636 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site