]> 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>
Mon, 9 Mar 2015 11:26:55 +0000 (12:26 +0100)
commitc9f5ec0faa2b2d9cf7fc162baf99499457b8b909
tree20261a19efc066f1eda92760d56ef522b632f382
parentc958032a6d82c134683dadb4c859de532101bab1
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