[Interest] [Qt-interest] built-in support of unix signals
Till Oliver Knoll
till.oliver.knoll at gmail.com
Fri Feb 10 15:49:54 CET 2012
Am 10.02.2012 um 13:07 schrieb Maksim Kirillov <ext-maksim.kirillov at nokia.com>:
> Hi
>
> It is real fun to write things like described in
> http://doc.qt.nokia.com/4.7/unix-signals.html, but, since Linux now
> implements pselect() call, there could be a correctly working way to
> handle signals inside event loop. Are there any plans to implement that?
The above article describes how you can handle Unix signal inside *your own code* by making sure the event handling goes through the Qt event queue first, so you are safe to call any Qt function you wish - something which can go terribly wrong if you would do that in the Unix signal handler directly (as is the case with so many other system call. I think even a printf() puts you into hell!).
The article has nothing to do how Qt itself handles Unix signals itself internally.
So what exactly is your point here? That Qt would map some Unix signals such as SIGINT onto "convenience" Qt signals for us, with the technique as described in the article? Or possibly with the mentioned pselect system call instead?
Cheers, Oliver
More information about the Interest
mailing list