diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-17 12:04:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-17 12:04:28 +0100 |
commit | 97bacba3ead078e5db8b87ab651a3ffa7d82f60f (patch) | |
tree | a769244c0cdbaa4ae87951809f61da3a3f9df7a4 /kde-plasma/kscreenlocker/files | |
parent | b92911550490e2da121ec4b02d3cf60a2d31a17d (diff) |
gentoo auto-resync : 17:04:2024 - 12:04:27
Diffstat (limited to 'kde-plasma/kscreenlocker/files')
-rw-r--r-- | kde-plasma/kscreenlocker/files/kscreenlocker-6.0.3-fix-lockscreen-race.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-6.0.3-fix-lockscreen-race.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-6.0.3-fix-lockscreen-race.patch deleted file mode 100644 index 45976e0e1a14..000000000000 --- a/kde-plasma/kscreenlocker/files/kscreenlocker-6.0.3-fix-lockscreen-race.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 3105518ec3bc3ac88374e2c3b204f23feda91b5b Mon Sep 17 00:00:00 2001 -From: Dmitriy Konev <ddkonev@gmail.com> -Date: Sun, 18 Jun 2023 16:42:56 +0300 -Subject: [PATCH] Prevent finishing greeter by unhandled signals - -We have time gap between main() start and KSignalHandler registration -in which signals will close greeter - -First this bug tried to fix in commit c63287ca1250d60f61c4429cbeb0215f5c3bebde -but placing KSignalHandler registration at start of main() is bad idea -because it broke mechanism for handling signals at all -and this behaviour was fixed in commit 448df7517021b9c2e68de161008ebc180363abed -by moving handlers bellow -for this reason we have this time gap ---- - greeter/main.cpp | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/greeter/main.cpp b/greeter/main.cpp -index bf95cd1e..0693646e 100644 ---- a/greeter/main.cpp -+++ b/greeter/main.cpp -@@ -57,6 +57,12 @@ static void signalHandler(int signum) - - int main(int argc, char *argv[]) - { -+ sigset_t blockedSignals; -+ sigemptyset(&blockedSignals); -+ sigaddset(&blockedSignals, SIGTERM); -+ sigaddset(&blockedSignals, SIGUSR1); -+ pthread_sigmask(SIG_BLOCK, &blockedSignals, NULL); -+ - LayerShellQt::Shell::useLayerShell(); - - // disable ptrace on the greeter -@@ -101,6 +107,8 @@ int main(int argc, char *argv[]) - // only connect signal handler once we can actual handle the signal properly - QObject::connect(KSignalHandler::self(), &KSignalHandler::signalReceived, &app, &signalHandler); - -+ pthread_sigmask(SIG_UNBLOCK, &blockedSignals, NULL); -+ - app.setQuitOnLastWindowClosed(false); - app.setQuitLockEnabled(false); - QCoreApplication::setApplicationName(QStringLiteral("kscreenlocker_greet")); --- -GitLab - |