diff options
author | NIIBE Yutaka <[email protected]> | 2023-08-30 05:08:33 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-08-30 05:08:33 +0000 |
commit | 7025375e8bec6f28e5750f724faa93e7d9f7d692 (patch) | |
tree | a7e31d661d6359df1cc11acecd7fc3746c92cb61 /agent/cache.c | |
parent | agent: Recover support CHECK_OWN_SOCKET_INTERVAL == 0. (diff) | |
download | gnupg-7025375e8bec6f28e5750f724faa93e7d9f7d692.tar.gz gnupg-7025375e8bec6f28e5750f724faa93e7d9f7d692.zip |
agent: Have a thread monitoring parent PID and homedir.
* agent/gpg-agent.c (CHECK_PROBLEMS_INTERVAL): New.
(socket_takeover_detected): Remove.
(problem_detected): New.
(handle_tick): Don't check parent PID and homedir in this function.
(handle_connections): Spawn check_others_thread when needed. Handle
AGENT_PROBLEM_PARENT_HAS_GONE and AGENT_PROBLEM_HOMEDIR_REMOVED.
(check_own_socket_thread): Check SHUTDOWN_PENDING variable in the
loop. Use PROBLEM_DETECTED variable.
(check_others_thread): New.
--
GnuPG-bug-id: 6693
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/cache.c')
0 files changed, 0 insertions, 0 deletions