]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: make sure that reload file exists
authorKarel Zak <kzak@redhat.com>
Mon, 9 Mar 2015 11:26:55 +0000 (12:26 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2015 09:19:52 +0000 (10:19 +0100)
commit4e93a1d3a54d519f4443aa869da3dafc4d9adb23
tree4f153d167caa5314609503211b7433c1aec174f0
parent6ff0747b2657ed3b2fd6928ff36ce51127f63b8a
agetty: make sure that reload file exists

agetty monitors /run/agetty.reload file, unfortunately if the file
does not exist when agetty starts up then "agetty" --reload does not
work. This patch forces agetty to create the file before inotify
is enabled.

Reported-by: Sitsofe Wheeler <sitsofe@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c