Differences From Artifact [c4fa7336ee]:
- File
src/OFStreamObserver.m
— part of check-in
[8349bc4bbe]
at
2011-04-04 23:32:10
on branch trunk
— Check the value of read/write in OFStreamObserver.
Some systems like Ubuntu have libc headers which specify an attribute
that the compiler should issue a warning if the return value is ignored. (user: js, size: 10328) [annotate] [blame] [check-ins using]
To Artifact [b5be6cde87]:
- File
src/OFStreamObserver.m
— part of check-in
[57f51f7341]
at
2011-04-06 19:53:11
on branch trunk
— Don't compare to FD_SETSIZE.
FD_SETSIZE is _NOT_ the number of the last fd, but the maximum number of
fds to observe! (user: js, size: 10176) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
178 179 180 181 182 183 184 | #else - (void)_addStream: (OFStream*)stream withFDSet: (fd_set*)fdset { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; int fd = [stream fileDescriptor]; | < < < < < < | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | #else - (void)_addStream: (OFStream*)stream withFDSet: (fd_set*)fdset { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; int fd = [stream fileDescriptor]; FD_SET(fd, fdset); FD_SET(fd, &exceptfds); if (fd >= nfds) nfds = fd + 1; [pool release]; } - (void)_removeStream: (OFStream*)stream withFDSet: (fd_set*)fdset otherFDSet: (fd_set*)other_fdset { int fd = [stream fileDescriptor]; FD_CLR(fd, fdset); if (!FD_ISSET(fd, other_fdset)) FD_CLR(fd, &exceptfds); } #endif |
︙ | ︙ |