projects
/
micoforia.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5805014
)
shutdown_console(): Make umount commands work.
author
Andre Noll
<maan@tuebingen.mpg.de>
Wed, 5 May 2021 16:41:40 +0000
(18:41 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Wed, 5 May 2021 16:41:40 +0000
(18:41 +0200)
Oops. we unmounted /dev/tty1 several times rather than looping
over all ttys.
micoforia.c
patch
|
blob
|
history
diff --git
a/micoforia.c
b/micoforia.c
index 4d267ec8f56a0912fb897bc930af328142b8420c..d5f300e9ec3e8326dcb85ad613e1ca9b40c25e7e 100644
(file)
--- a/
micoforia.c
+++ b/
micoforia.c
@@
-943,7
+943,7
@@
static void shutdown_console(struct container_runtime *cr)
char *console;
for (n = 0; n < cr->num_ttys; n++) {
- char *tty = msg("%s/tty
1", cr->dev
);
+ char *tty = msg("%s/tty
%u", cr->dev, n
);
if (umount2(tty, MNT_DETACH) < 0)
DEBUG_LOG("umount %s: %m\n", tty);
free(tty);