Am 10.02.2012 um 13:07 schrieb Maksim Kirillov <ext-maksim.kiril...@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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to