[Libevent-users] [PATCH] Fix problems in evport.c
Trond Norbye
Trond.Norbye at Sun.COM
Wed Sep 12 04:23:52 EDT 2007
This patch fix two problems with evport.c on Solaris:
1. The grow-function reallocates the ed_fds array, but ed_pending array
may contain pointers to the elements in the ed_fds array. These pointers
must be relocated to avoid using freed memory.
2. evport_dispatch does not handle a NULL-timval-pinter (no time-based
events are active, wait for I/O).
--Trond
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.evport.c
Type: text/x-csrc
Size: 1704 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070912/c9fe39f5/patch.evport.bin
More information about the Libevent-users
mailing list