Differences From Artifact [1e1bf29b71]:
- File
src/OFStreamObserver_kqueue.m
— part of check-in
[19df6b304d]
at
2012-12-11 23:26:49
on branch trunk
— OFStreamObserver_kqueue: Integer overflow check.
This is only relevant for platforms on which kqueue uses int for the
number of events instead of size_t. (user: js, size: 3904) [annotate] [blame] [check-ins using]
To Artifact [c9bbb01ae1]:
- File src/OFStreamObserver_kqueue.m — part of check-in [c85ff8d35a] at 2012-12-15 17:52:20 on branch trunk — OFDataArray: Improve API. (user: js, size: 3903) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
120 121 122 123 124 125 126 | if ([self OF_processCache]) { objc_autoreleasePoolPop(pool); return YES; } objc_autoreleasePoolPop(pool); | | | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | if ([self OF_processCache]) { objc_autoreleasePoolPop(pool); return YES; } objc_autoreleasePoolPop(pool); events = kevent(kernelQueue, [changeList items], (int)[changeList count], eventList, EVENTLIST_SIZE, (timeout == -1 ? NULL : ×pec)); if (events == -1) { switch (errno) { case EINTR: return NO; |
︙ | ︙ |