[Qt-interest] how to trace the Unix signal?
zhu minjue
zu.real.miracle at gmail.com
Mon Jan 11 10:28:02 CET 2010
Thank you for your reply.
If Qt app connect to X Server,how Qt app know when it disconnect from or
be killed by X server and to do its clean up work?
All I want to do is do some clean up operations when app is killed.
will x11EventFilter do this work?
All regards,
Micheal Zu
On Mon, 2010-01-11 at 09:01 +0100, Thiago Macieira wrote:
> Em Segunda-feira 11. Janeiro 2010, às 04.37.40, zhu minjue escreveu:
> > I run my UI application,reboot the system.after the system turn on,there
> > is no any output.But if I explicitly send the 'TERM' signal in Shell
> > terminal:
> > $ kill -15 5323
> > The Qt UI application do receive the 'SIGTERM' signal and output the
> > result.
> > Does anyone know why this happen?any suggestion?
>
> Probably because your application is connected to the X server, so it's killed
> by the X server first, before signals are emitted to it.
>
> Qt respects XSMP, so it will reply to session shutdown requests. Even if it
> didn't, it would exit after the X server closed the connection.
>
> That happens way before the SIGTERM signal is sent.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list