Linux Container Development
 help / color / mirror / Atom feed
From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: Containers
	<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: global_send_sigint
Date: Wed, 24 Feb 2010 19:47:46 -0800	[thread overview]
Message-ID: <20100225034746.GA18829@us.ibm.com> (raw)


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

             reply	other threads:[~2010-02-25  3:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  3:47 Sukadev Bhattiprolu [this message]
     [not found] ` <20100225034746.GA18829-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2011-01-11  1:59   ` global_send_sigint Oren Laadan
     [not found]     ` <4D2BB975.2010306-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2011-01-11 21:59       ` global_send_sigint Sukadev Bhattiprolu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100225034746.GA18829@us.ibm.com \
    --to=sukadev-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox