The Samba-Bugzilla – Attachment 10888 Details for
Bug 11079
libsmbclient not checking the cached connection alive status before re-using it from connection cache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Raw horrible hack patch for tevent :-).
look (text/plain), 1.38 KB, created by
Jeremy Allison
on 2015-03-19 04:27:42 UTC
(
hide
)
Description:
Raw horrible hack patch for tevent :-).
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2015-03-19 04:27:42 UTC
Size:
1.38 KB
patch
obsolete
>diff --git a/lib/tevent/tevent_epoll.c b/lib/tevent/tevent_epoll.c >index 01fcde6..d1f75c3 100644 >--- a/lib/tevent/tevent_epoll.c >+++ b/lib/tevent/tevent_epoll.c >@@ -174,8 +174,8 @@ static void epoll_panic(struct epoll_event_context *epoll_ev, > static uint32_t epoll_map_flags(uint16_t flags) > { > uint32_t ret = 0; >- if (flags & TEVENT_FD_READ) ret |= (EPOLLIN | EPOLLERR | EPOLLHUP); >- if (flags & TEVENT_FD_WRITE) ret |= (EPOLLOUT | EPOLLERR | EPOLLHUP); >+ if (flags & TEVENT_FD_READ) ret |= (EPOLLIN | EPOLLERR | EPOLLHUP | EPOLLRDHUP); >+ if (flags & TEVENT_FD_WRITE) ret |= (EPOLLOUT | EPOLLERR | EPOLLHUP | EPOLLRDHUP); > return ret; > } > >@@ -586,7 +586,7 @@ static void epoll_update_event(struct epoll_event_context *epoll_ev, struct teve > } > > /* >- Cope with epoll returning EPOLLHUP|EPOLLERR on an event. >+ Cope with epoll returning EPOLLHUP|EPOLLERR|EPOLLRDHUP on an event. > Return true if there's nothing else to do, false if > this event needs further handling. > */ >@@ -678,7 +678,7 @@ static int epoll_event_loop(struct epoll_event_context *epoll_ev, struct timeval > mpx_fde = talloc_get_type_abort(fde->additional_data, > struct tevent_fd); > } >- if (events[i].events & (EPOLLHUP|EPOLLERR)) { >+ if (events[i].events & (EPOLLHUP|EPOLLERR|EPOLLRDHUP)) { > bool handled_fde = epoll_handle_hup_or_err(epoll_ev, fde); > bool handled_mpx = epoll_handle_hup_or_err(epoll_ev, mpx_fde); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11079
:
10676
|
10690
|
10884
|
10886
|
10888
|
10889
|
10898