From 9881f136858ac8f3a77a6cea8ce15b1cdb4ad55a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Mar 2010 22:47:29 -0800 Subject: add TODO item for using netlink under Linux --- ext/posix_mq/posix_mq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c index 6278852..dc23a8d 100644 --- a/ext/posix_mq/posix_mq.c +++ b/ext/posix_mq/posix_mq.c @@ -725,6 +725,10 @@ static void thread_notify_fd(union sigval sv) while ((write(fd, "", 1) < 0) && (errno == EINTR || errno == EAGAIN)); } +/* + * TODO: Under Linux, we could just use netlink directly + * the same way glibc does... + */ static void setup_notify_io(struct sigevent *not, VALUE io) { int fd = NUM2INT(rb_funcall(io, id_fileno, 0, 0)); -- cgit v1.2.3-24-ge0c7