905_0138-agent-Allow-threads-to-interrupt-main-select-loop-wi.patch
Needs ReviewPublic

Authored by dkg on Nov 15 2016, 12:58 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Tue, 1 Nov 2016 00:45:23 -0400
Subject: agent: Allow threads to interrupt main select loop with SIGCONT.

  • agent/gpg-agent.c (interrupt_main_thread_loop): New function on

non-windows platforms, allows other threads to interrupt the main loop
if there's something that the main loop might be interested in.

For example, the main loop might be interested in changes in program
state that affect the timers it expects to see.

I don't know how to do this on Windows platforms, but i welcome any
proposed improvements.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

agent/agent.h | 1 +
agent/gpg-agent.c | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped