From: aq <aquynh@gmail.com>
To: "List: Xen Developers" <xen-devel@lists.xensource.com>
Subject: [PATCH] fix reboot.c
Date: Thu, 11 Aug 2005 20:52:19 +0900 [thread overview]
Message-ID: <9cde8bff05081104526524b3b6@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 303 bytes --]
domU always reports an error "Ignoring shutdown request: -1" when we
shutdown it from dom0 (using "xm shutdown" command). This patch fixes
it.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
# diffstat reboot2.patch
reboot.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: reboot2.patch --]
[-- Type: text/x-patch; name="reboot2.patch", Size: 523 bytes --]
diff -r d95ea17567c6 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Thu Aug 11 08:59:47 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c Thu Aug 11 20:40:09 2005
@@ -254,7 +254,8 @@
char *str;
str = (char *)xenbus_read("control", "shutdown", NULL);
- if (IS_ERR(str))
+ if (IS_ERR(str)||
+ !strcmp(str, "-1")) /* ignore recursive shutdown event */
return;
xenbus_printf("control", "shutdown", "%i", SHUTDOWN_INVALID);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2005-08-11 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 11:52 aq [this message]
2005-08-11 14:26 ` [PATCH] fix reboot.c aq
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=9cde8bff05081104526524b3b6@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=xen-devel@lists.xensource.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.