From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754748Ab2DPV0l (ORCPT ); Mon, 16 Apr 2012 17:26:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44199 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751023Ab2DPV0k (ORCPT ); Mon, 16 Apr 2012 17:26:40 -0400 Date: Mon, 16 Apr 2012 23:26:06 +0200 From: Oleg Nesterov To: Serge Hallyn Cc: Andrew Morton , Daniel Lezcano , linux-kernel@vger.kernel.org Subject: Re: [PATCH] pidns: reboot_pid_ns: use SEND_SIG_FORCED instead of force_sig() Message-ID: <20120416212606.GA27490@redhat.com> References: <20120413004446.GA8376@redhat.com> <20120413182051.GA11149@sergelap> <20120413192455.GA24464@redhat.com> <20120416135931.GB4234@sergelap> <20120416153843.GA9302@redhat.com> <20120416162402.GA7995@sergelap> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120416162402.GA7995@sergelap> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/16, Serge Hallyn wrote: > > Quoting Oleg Nesterov (oleg@redhat.com): > > On 04/16, Serge Hallyn wrote: > > > > > > Quoting Oleg Nesterov (oleg@redhat.com): > > > > > > > > Strange... I even tested this change, but only in the root namespace. > > > > OK, thanks, I'll investigate. I hope you verified your kernel has > > > > 629d362b commit ;) > > > > > > I took friday's HEAD of Linus tree. All went fine. Added this patch. > > > The container can shutdown, but reboot causes shutdown. Don't undersrtand > > > why. > > > > Heh. This looks "impossible". I'd like to understand the reason. > > So, LINUX_REBOOT_CMD_RESTART results in WIFSIGNALED() == SIGINT? > > > > OK, I'll try to test this patch in the non-root namespace. > > Playing with the test case below (based on the one Daniel submitted > alongside his container reboot patches), it looks like > WIFSIGNALED(status) and WTERMSIG(status) are 0 with this kernel, not > 1 and sig. Great, thanks Serge. I'll investigate and report tomorrow. Oleg.