git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ea93bd
)
fix poll
author
Stefan Metzmacher
<metze@samba.org>
Thu, 28 Feb 2013 15:53:52 +0000
(16:53 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 4 Oct 2016 12:52:15 +0000
(14:52 +0200)
lib/tevent/tevent_poll.c
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent_poll.c
b/lib/tevent/tevent_poll.c
index 09d85fa322adff298eb6a1f5e7c72bccd6121881..8f324d50a2f9188639c488009b4d18e62a5a9c2c 100644
(file)
--- a/
lib/tevent/tevent_poll.c
+++ b/
lib/tevent/tevent_poll.c
@@
-303,7
+303,7
@@
static struct tevent_fd *poll_event_add_fd(struct tevent_context *ev,
return NULL;
}
return NULL;
}
- fde = talloc(mem_ctx ? mem_ctx : ev, struct tevent_fd);
+ fde = talloc
_zero
(mem_ctx ? mem_ctx : ev, struct tevent_fd);
if (fde == NULL) {
return NULL;
}
if (fde == NULL) {
return NULL;
}
@@
-311,12
+311,9
@@
static struct tevent_fd *poll_event_add_fd(struct tevent_context *ev,
fde->fd = fd;
fde->flags = flags;
fde->handler = handler;
fde->fd = fd;
fde->flags = flags;
fde->handler = handler;
- fde->close_fn = NULL;
fde->private_data = private_data;
fde->handler_name = handler_name;
fde->location = location;
fde->private_data = private_data;
fde->handler_name = handler_name;
fde->location = location;
- fde->additional_flags = UINT64_MAX;
- fde->additional_data = NULL;
tevent_poll_event_add_fd_internal(ev, fde);
poll_event_wake_pollthread(poll_ev);
tevent_poll_event_add_fd_internal(ev, fde);
poll_event_wake_pollthread(poll_ev);