Searched refs:kfd (Results 1 - 1 of 1) sorted by relevance

/macosx-10.10/syslog-267/syslogd.tproj/
H A Dklog_in.c50 static int kfd = -1; variable
96 if (kfd >= 0) return 0;
98 kfd = open(_PATH_KLOG, O_RDONLY, 0);
99 if (kfd < 0)
105 if (fcntl(kfd, F_SETFL, O_NONBLOCK) < 0)
107 close(kfd);
108 kfd = -1;
109 asldebug("%s: couldn't set O_NONBLOCK for fd %d (%s): %s\n", MY_ID, kfd, _PATH_KLOG, strerror(errno));
113 in_src = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ, (uintptr_t)kfd, 0, in_queue);
114 dispatch_source_set_event_handler(in_src, ^{ klog_in_acceptdata(kfd); });
[all...]

Completed in 165 milliseconds