From: Roberto Sassu <roberto.sassu@huawei.com>
To: "Leizhen (ThunderTown)" <thunder.leizhen@huawei.com>,
"anton.ivanov@cambridgegreys.com"
<anton.ivanov@cambridgegreys.com>,
"richard@nod.at" <richard@nod.at>
Cc: "linux-um@lists.infradead.org" <linux-um@lists.infradead.org>
Subject: linux process killed after poweroff
Date: Tue, 20 Jul 2021 11:00:09 +0000 [thread overview]
Message-ID: <18247e831eac439fa066a56efa3e96e6@huawei.com> (raw)
Hi everyone
I found a change of behavior after:
commit ccf1236ecac476d9d2704866d9a476c86e387971
Author: Zhen Lei <thunder.leizhen@huawei.com>
Date: Sat May 8 11:22:39 2021 +0800
um: fix error return code in winch_tramp()
When linux (UML) is executed inside a script, the following
error message appears:
root@(none):/# poweroff -f
Powering off.
reboot: System halted
./test.sh: line 3: 1474370 Killed ./linux rootfstype=hostfs mem=256M init=/bin/bash
137
Before this patch:
root@(none):/# poweroff -f
Powering off.
reboot: System halted
0
The script I used for the test is:
#! /bin/bash
./linux rootfstype=hostfs mem=256M init=/bin/bash
echo $?
I'm using the exit code of linux to determine whether or not
a test executed inside UML was successful. Is the new behavior
intended?
Thanks
Roberto
HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063
Managing Director: Li Peng, Li Jian, Shi Yanli
_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um
reply other threads:[~2021-07-20 11:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=18247e831eac439fa066a56efa3e96e6@huawei.com \
--to=roberto.sassu@huawei.com \
--cc=anton.ivanov@cambridgegreys.com \
--cc=linux-um@lists.infradead.org \
--cc=richard@nod.at \
--cc=thunder.leizhen@huawei.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).