FROM : Jordan Krushen
DATE : Thu Jun 15 21:11:33 2006
On 6/14/06, Uli Kusterer <<email_removed>> wrote:
> AFAIK Mac OS X doesn't yet support closing a file descriptor for a
> kqueue. That's why I added the singleton code later on, because that
> way you're not leaking file descriptors (well, only one at least).
> So, I guess the real answer is: I don't know how to close a kqueue fd
> either. It seems to work fine under 10.4 for me, though, which is why
> I left in that code.
I took the time to check out the kqueue code in Advanced Mac OS X
Programming (Hillegass & Dalrymple) and they don't show any fd
closing. That aspect seems to not be mentioned at all.
The book does give a useful description of using kqueue for signal,
socket and filesystem event handling, for those who are interested.
J.
DATE : Thu Jun 15 21:11:33 2006
On 6/14/06, Uli Kusterer <<email_removed>> wrote:
> AFAIK Mac OS X doesn't yet support closing a file descriptor for a
> kqueue. That's why I added the singleton code later on, because that
> way you're not leaking file descriptors (well, only one at least).
> So, I guess the real answer is: I don't know how to close a kqueue fd
> either. It seems to work fine under 10.4 for me, though, which is why
> I left in that code.
I took the time to check out the kqueue code in Advanced Mac OS X
Programming (Hillegass & Dalrymple) and they don't show any fd
closing. That aspect seems to not be mentioned at all.
The book does give a useful description of using kqueue for signal,
socket and filesystem event handling, for those who are interested.
J.
| Related mails | Author | Date |
|---|---|---|
| Lon Giese | Jun 13, 11:26 | |
| Jordan Krushen | Jun 13, 19:43 | |
| Lon Giese | Jun 14, 00:24 | |
| Jordan Krushen | Jun 14, 00:37 | |
| Uli Kusterer | Jun 14, 12:08 | |
| Jordan Krushen | Jun 15, 21:11 |






Cocoa mail archive

