linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* linux process killed after poweroff
@ 2021-07-20 11:00 Roberto Sassu
  0 siblings, 0 replies; only message in thread
From: Roberto Sassu @ 2021-07-20 11:00 UTC (permalink / raw)
  To: Leizhen (ThunderTown), anton.ivanov@cambridgegreys.com,
	richard@nod.at
  Cc: linux-um@lists.infradead.org

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-20 11:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-20 11:00 linux process killed after poweroff Roberto Sassu

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).