DBus threading question

Thiago Macieira thiago at kde.org
Thu Dec 11 10:49:11 PST 2008


On Thursday 11 December 2008 19:01:25 Schmottlach, Glenn wrote:
> void sigHandler(int sig)
> {
>    dispatcher.leave();
>    gExit = true;
> }
>  

By signal handler, I had meant the function called when you receive a signal 
from D-Bus.

Not Unix signals. You're definitely not allowed to use libdbus-1 from a Unix 
signal handler. There's a very, very small list of system calls that you're 
allowed to do from a signal handler.

Usually, the only operation you can have is to write to a pipe.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20081211/2e083059/attachment.pgp 


More information about the dbus mailing list