[Qt-interest] how to trace the Unix signal?
Thiago Macieira
thiago at kde.org
Mon Jan 11 09:01:56 CET 2010
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.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
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: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100111/fe296991/attachment.bin
More information about the Qt-interest-old
mailing list