NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/58916: timerfd(2) claims ready for write
The following reply was made to PR kern/58916; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/58916: timerfd(2) claims ready for write
Date: Wed, 18 Dec 2024 16:49:02 +0100
--8vIkFKi2bneNJ0ZW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wed, Dec 18, 2024 at 02:55:00PM +0000, campbell+netbsd%mumble.net@localhost wrote:
> >Number: 58916
> >Category: kern
> >Synopsis: timerfd(2) claims ready for write
This seems to fix the two tests for me. Ok to commit?
Thomas
--8vIkFKi2bneNJ0ZW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="poll.diff"
Index: sys_timerfd.c
===================================================================
RCS file: /cvsroot/src/sys/kern/sys_timerfd.c,v
retrieving revision 1.8
diff -u -r1.8 sys_timerfd.c
--- sys_timerfd.c 17 Feb 2022 16:28:29 -0000 1.8
+++ sys_timerfd.c 18 Dec 2024 15:48:37 -0000
@@ -337,7 +337,7 @@
timerfd_fop_poll(file_t * const fp, int const events)
{
struct timerfd * const tfd = fp->f_timerfd;
- int revents = events & (POLLOUT | POLLWRNORM);
+ int revents = 0;
if (events & (POLLIN | POLLRDNORM)) {
itimer_lock();
--8vIkFKi2bneNJ0ZW--
Home |
Main Index |
Thread Index |
Old Index