tr8lina / rpms / OpenIPMI

Forked from rpms/OpenIPMI 2 years ago
Clone

Blame SOURCES/0001-unix_thread-Remove-the-fd-handler-sets-before-it-s-s.patch

Marcella Mancinetti b4c452
From d613d279dbce2d5e4594f6fed39653d83af0d99b Mon Sep 17 00:00:00 2001
Marcella Mancinetti b4c452
From: Corey Minyard <cminyard@mvista.com>
Marcella Mancinetti b4c452
Date: Mon, 5 Jul 2021 09:59:29 -0500
Marcella Mancinetti b4c452
Subject: [PATCH] unix_thread: Remove the fd handler sets before it's set up
Marcella Mancinetti b4c452
Marcella Mancinetti b4c452
There were a couple of fd handler set before the fd was actually
Marcella Mancinetti b4c452
configured.  With recent changes in the selector code that would result
Marcella Mancinetti b4c452
in an assert.  The calls were unnecessary, so remove them.
Marcella Mancinetti b4c452
Marcella Mancinetti b4c452
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Marcella Mancinetti b4c452
---
Marcella Mancinetti b4c452
 unix/posix_thread_os_hnd.c | 2 --
Marcella Mancinetti b4c452
 1 file changed, 2 deletions(-)
Marcella Mancinetti b4c452
Marcella Mancinetti b4c452
diff --git a/unix/posix_thread_os_hnd.c b/unix/posix_thread_os_hnd.c
Marcella Mancinetti b4c452
index 28c66898..cb315c5e 100644
Marcella Mancinetti b4c452
--- a/unix/posix_thread_os_hnd.c
Marcella Mancinetti b4c452
+++ b/unix/posix_thread_os_hnd.c
Marcella Mancinetti b4c452
@@ -140,8 +140,6 @@ add_fd(os_handler_t       *handler,
Marcella Mancinetti b4c452
     fd_data->data_ready = data_ready;
Marcella Mancinetti b4c452
     fd_data->handler = handler;
Marcella Mancinetti b4c452
     fd_data->freed = freed;
Marcella Mancinetti b4c452
-    sel_set_fd_write_handler(posix_sel, fd, SEL_FD_HANDLER_DISABLED);
Marcella Mancinetti b4c452
-    sel_set_fd_except_handler(posix_sel, fd, SEL_FD_HANDLER_DISABLED);
Marcella Mancinetti b4c452
     rv = sel_set_fd_handlers(posix_sel, fd, fd_data, fd_handler, NULL, NULL,
Marcella Mancinetti b4c452
 			     free_fd_data);
Marcella Mancinetti b4c452
     if (rv) {
Marcella Mancinetti b4c452
-- 
Marcella Mancinetti b4c452
2.31.1
Marcella Mancinetti b4c452