On Mon, 17 Dec 2001 10:20:28 -0500 (EST) Aaron Sethman <androsyn@ratbox.org> wrote: > > I am attempting to make a pre-existing server use SIGIO with posix rt > signals and I am having some difficulties with it. Mainly with reception > of POLLOUT. When exactly should this get sent? Should it only get sent > when attempting to write() and getting EAGAIN, then the socket being ready > or? I suppose that you must send SIGIO when data actually arives from socket. In accordance of LDD2 write() method should look something like this: ssize_t _write(...) { /* Some data defenitions */ if (dev->async_queue) kill_fasync(&dev->async_queue, SIGIO, POLL_IN); if (down_interruptible(&dev->sem)) return -ERESTARTSYS; /* Work with data transaction itself */ } > > Thanks in advance. > > Regards, > > Aaron --- WBR. //s0mbre - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html