Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using QApplication, unix signals are not raised on Embedded Linux.(QT 5.5) #1

Open
trinadh17 opened this issue May 11, 2016 · 1 comment

Comments

@trinadh17
Copy link

When using QCoreApplication in main() as suggested in example.cc, the code works fine.
But if i change QCoreApplication to QApplication (as i am using UI), unix signals are not raised.

The application works fine on Desktop.
The above issue is with Embedded Linux.

I see that QT internally blocked the signals SIGINT, SIGTERM to route it to socket. (using signalfd()).

can i call sigprocmask with SIG_UNBLOCK in my handler to emit the signal.
(If i do it signal is emitted successfully)

Will there be any side-effects on QT Application if i set it directly.

@romme
Copy link

romme commented Jul 20, 2016

Seems relevant: https://bugreports.qt.io/browse/QTBUG-48384

Had the same issue, ended up making a QFileSystemWatcher look for a file "/etc/goodbye" to appear and to call QCoreApplication::quit() when this happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants