summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5805014)
Oops. we unmounted /dev/tty1 several times rather than looping
over all ttys.
char *console;
for (n = 0; n < cr->num_ttys; n++) {
char *console;
for (n = 0; n < cr->num_ttys; n++) {
- char *tty = msg("%s/tty1", 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);
if (umount2(tty, MNT_DETACH) < 0)
DEBUG_LOG("umount %s: %m\n", tty);
free(tty);