projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92033d8
)
nspawn: don't try to unregister a machine we never registered
author
Lennart Poettering
<lennart@poettering.net>
Wed, 27 Nov 2024 09:26:04 +0000
(10:26 +0100)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 27 Nov 2024 15:12:57 +0000
(
00:12
+0900)
When registering we condition this on "arg_register". Let's do the same
when unregistering, otherwise we might end up trying to unregister a
machine we never registered.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 91700d92827ba35cf7d7af7064274a1be194640a..81531ac173feaf1e6402d7178f7f7c6867fbef04 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-5772,7
+5772,7
@@
static int run_container(
r = wait_for_container(TAKE_PID(*pid), &container_status);
/* Tell machined that we are gone. */
- if (bus)
+ if (
arg_register &&
bus)
(void) unregister_machine(bus, arg_machine);
if (r < 0)