Dave_Linux
06-12-2001, 10:59 AM
Hi all,
Need some pointers or help to listen to klogd or syslogd using UNIX sockets....
Does anyone have any experience using UNIX sockets to listen to kernel messages. I'd like to code a daemon which remains in the background while actively listening to kernel messages of priority <1>.
I don't want to poll and use sleeps within my program because they take precious system resources. What I've though of is using UNIX sockets to listen to the kernel messages using syslogd or klogd.
The unfortunate part of the idea is I don't know how to use the syslogd or klogd API and I don't have any examples to go by... I was just wondering if anyone out there has some sample codes to get me started....
Thanks,
Dave :confused:
Need some pointers or help to listen to klogd or syslogd using UNIX sockets....
Does anyone have any experience using UNIX sockets to listen to kernel messages. I'd like to code a daemon which remains in the background while actively listening to kernel messages of priority <1>.
I don't want to poll and use sleeps within my program because they take precious system resources. What I've though of is using UNIX sockets to listen to the kernel messages using syslogd or klogd.
The unfortunate part of the idea is I don't know how to use the syslogd or klogd API and I don't have any examples to go by... I was just wondering if anyone out there has some sample codes to get me started....
Thanks,
Dave :confused: