Its a System V queue. Hoe would i go about converting a System V queue to look like a socket. I would like to stick with select() and make a the queue somehow look like a file descriptor. You are rigth i could service the queue under a thread, however it would be elegant to have select do this. Monear --- Jan Hudec <bulb@ucw.cz> wrote: > 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> __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/