Glib g_io_add_watch + AX25



Hello,

i have a Problem with Glib and AX25 socket. Here is in short what i am trying to do:

ax25_sock = socket(AF_AX25, SOCK_SEQPACKET, 0);

rx_io = g_io_channel_unix_new(ax25_sock);

g_io_add_watch(rx_io, G_IO_IN, rx_io_event, NULL);


I end up with 100% CPU load when i add the channel and the callback rx_io_event never gets called.

i get loads of the following lines in short time with strace:

ioctl(4, FIONREAD, [0])                 = 0
poll([{fd=4, events=POLLIN}, {fd=6, events=POLLIN, revents=POLLHUP}], 2, -1) = 1

I've tried the same with an normal AF_INET socket and it dont "poll" so often and no 100% CPU load.

Any ideas ?

Greetings,
Andre




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]