]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
login: Disarm timer after utmp lock acquisition [BZ #24879]
authorFlorian Weimer <fweimer@redhat.com>
Thu, 15 Aug 2019 14:09:05 +0000 (16:09 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 15 Aug 2019 14:09:05 +0000 (16:09 +0200)
commit628598be7e1bfaa04f34df71ef6678f2c5103dfd
treea9b7724fb96614a40533ee98d6417268e9584e47
parent17e1347452df722eed69b8b756ae21c35933b4b5
login: Disarm timer after utmp lock acquisition [BZ #24879]

If the file processing takes a long time for some reason, SIGALRM can
arrive while the file is still being processed.  At that point, file
access will fail with EINTR.  Disarming the timer after lock
acquisition avoids that.  (If there was a previous alarm, it is the
responsibility of the caller to deal with the EINTR error.)
ChangeLog
login/utmp_file.c