sijk / qt-unix-signals Goto Github PK
View Code? Open in Web Editor NEWTurn Unix signals into Qt signals
License: Other
Turn Unix signals into Qt signals
License: Other
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.
Thanks for a great piece of code!
There is only couple of problems:
I thought it would be useful to add support for projects build with CMake.
This will result in an easy and automated way to include qt-unix-signal into your own QT project build with CMake.
I will make a PR today and link it as an answer to this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.