32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From 1f3d5e1f2378a71ec8c5c75abb388059bc17d182 Mon Sep 17 00:00:00 2001
|
|
From: liuxinhao <liuxinhao@kylinsec.com.cn>
|
|
Date: Fri, 9 Dec 2022 11:00:15 +0800
|
|
Subject: [PATCH 6/6] fix(screensaver-dialog): Fix the zombie process caused by
|
|
waitpid reclaiming that the authentication process is not blocked after the
|
|
command is invoked in the unlock box
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
修复在解锁框调用命令解锁后,waitpid回收认证进程未阻塞导致的僵尸进程
|
|
---
|
|
lib/auth-proxy/auth-pam.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/auth-proxy/auth-pam.cpp b/lib/auth-proxy/auth-pam.cpp
|
|
index 3c2bcda..61feae6 100644
|
|
--- a/lib/auth-proxy/auth-pam.cpp
|
|
+++ b/lib/auth-proxy/auth-pam.cpp
|
|
@@ -139,7 +139,7 @@ void AuthPam::cancelAuthentication()
|
|
if (m_authPid != 0)
|
|
{
|
|
kill(m_authPid, SIGKILL);
|
|
- waitpid(m_authPid, nullptr, WNOHANG);
|
|
+ waitpid(m_authPid, nullptr, 0);
|
|
m_authPid = 0;
|
|
}
|
|
|
|
--
|
|
2.33.0
|
|
|