Re: GLib and IPC



Zoran Rilak wrote:
Greetings developers,

  following GTK+'s requirement that processes using it may not run with
suid bit on, I'm writing a separate process with superuser privileges. This process needs to communicate with the GUI part rather tightly, so
I've checked GLib docs for inter-process comunication stuff, but
couldn't verify that any of thread-related functions can be used between
separate processes.  Is there any way to achieve IPC using GLib?

Yes and no.
    No there is no IPC implemented by glib.
    Yes you can easily achieve IPC while using glib based apps.

Generaly, an ipc implementation will give you a file descriptor for
incomming events, feed that file descriptor to g_io_channel_unix_new()
and that "channel" in turn to g_io_channel_add_watch().


Cheers,
                                     -Tristan





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]