On Tue, Oct 22, 2002 at 09:56:43PM -0700, Monear Jalal wrote: > Does anyone know (or better have code) on how you can > use select() to register both file descriptors and > Queues. I have a main event loop currently working for > UDP sockets, but the process may also receive > something on its queue. What kind of queue? A SysV ipc one? Could you convert it to unix domain packet socket? They can do the same service and have saner API. Otherwise you will need a thread monitoring the queue. You can wake up the poll using pipe (the monitoring thread writes something to a pipe monitored by the poll). ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/