
System call "select( )" and "Message Queue"
Quote:
>Does anyone know the function "select( )" is not support UNIX System V
>IPC's "Message Queue" ? When I pass message queue ID into this function, it
>always return -1. Anyone one can tell me the answer ?
Wrong newsgroup. The select() call and System V IPC are not part of the C
language but part of UNIX extensions thereof.
I will tell you this: select() is a way of polling file descriptors. System V
IPC objects are not file descriptors, and their ID's are therefore not file
descriptor numbers. You are being foolhardy. In OO speak, we would say that
select() is not a method applicable to IPC objects.