From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: global_send_sigint Date: Wed, 24 Feb 2010 19:47:46 -0800 Message-ID: <20100225034746.GA18829@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Containers List-Id: containers.vger.kernel.org global_send_sigint is -1 by default. If it is -1, we either send SIGKILL or SIGINIT depending on whether we started "new pidns with init" or "new pidns without init". If global_send_sigint is explicitly set to 0 by user (--signal is set). no signal is sent. Given that we are making restart() available in libcheckpoint.a, would it make sense to switch the behaviors of 0 and -1 ? i.e if global_send_sigint is 0, send the default signal (SIGINT or SIGKILL). If it is -1, then don't send any signal. That way, applications of restart() (i.e LXC) can simply memset(&args, 0, sizeof(args)) and get the default behavior. Now they have to explicitly set to -1. Sukadev