It is possible to have a SystemV IPC message queue (which is definitely more elegant than named pipes) as additional 'console' device. You need to compile with --enable-message-queue=MODE and use the option MessageQueueActive=T/F.
The default mode is 0700 (rwx------), but this is a compile option (message queues are kernel-resident, but have access permissions like files). To get the System V IPC key for the message queue, use ftok("/tmp", '#'); (man ftok, man msgctl, man msgrcv). Note that not all systems support SysV IPC.
![]() | Tip |
---|---|
There is a demo application (a GNOME panel applet) available on the download site that uses the message queue. |