From 628598be7e1bfaa04f34df71ef6678f2c5103dfd Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 15 Aug 2019 16:09:05 +0200 Subject: 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 14d1dc8875..b8a9a18450 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2019-08-15 Florian Weimer + + [BZ #24879] + login: Disarm timer after utmp lock acquisition. + * login/utmp_file.c (struct file_locking): Remove. + (try_file_lock): Adjust. + (file_lock_restore): Remove function. + (__libc_getutent_r): . + (internal_getut_r): Likewise. + (__libc_getutline_r): Likewise. + (__libc_pututline): Likewise. + (__libc_updwtmp): Likewise. + 2019-08-15 Florian Weimer nptl: Remove pthread_self compatibility symbol from libpthread. -- cgit v1.2.3