Skip to content

KSignalHandler: possibility to register signal handler as early as possible

Christoph Cullmann requested to merge work/cherry-pick-1a3cfad4 into kf5

QSocketNotifier need instance of QCoreApplication, this mean that KSignalHandler mechanism will work only after QCoreApplication creation (see kscreenlocker repo, commit: 448df7517021b9c2e68de161008ebc180363abed). There is time gap between main() start and QCoreApplication creation. In this gap signals will will be unhandled.

Moving QSocketNotifier creation from constructor to oneShort timer mean that object will be created after main event loop start, and this will happen after QCoreApplication cteation.

(cherry picked from commit 1a3cfad4)

Merge request reports