[systemd-devel] [PATCH] vconsole-setup.c: prevent EIO failure
Lennart Poettering
lennart at poettering.net
Tue May 3 09:00:10 PDT 2011
On Tue, 03.05.11 16:39, harald at redhat.com (harald at redhat.com) wrote:
> From: Harald Hoyer <harald at redhat.com>
>
> There might be a race condition that happens if you try to open
> /dev/tty0 while the current TTY is currently being closed.
> This would yield an -EIO error.
Ah, good catch.
I merged a slightly different patch now, wich simply replaces the
invocation of open() with open_terminal() here, which is a function from
util.c which already does the necessary loop.
Thanks,
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list