Dbus calls interlock issue
apenwarr at gmail.com
Sun Feb 15 13:56:22 PST 2009
On Sun, Feb 15, 2009 at 4:00 AM, Thiago Macieira <thiago at kde.org> wrote:
> Kaustubh Atrawalkar wrote:
>>In signal handler, i will create a pthread with a
>>function and parameter as pid and the sig_handler returns.
> No, that's not guaranteed to work.
> Quoting Simon's email of Friday (which you apparently ignored):
>>The vast majority of functions cannot safely be called from a signal(2)
...the short version is that whatever you try to do it from a signal
handler, it probably won't work.
If you're comfortable using threads, why not just have a thread always
running that calls waitpid() in a loop?
More information about the dbus