[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix needed for communication with gpg-agent
From: |
Kim F. Storm |
Subject: |
Re: Fix needed for communication with gpg-agent |
Date: |
Thu, 22 Feb 2007 00:15:16 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) |
Sascha Wilde <address@hidden> writes:
> A few more in depth tests[0] tests show, that emacs some how catches
> some of the input, which is meant to go to pinentry: The pinentry
> curses interface is already shown, when emacs still gets some of the
> key events...
So pinentry CAN read some input ...
Since this was the main problem which we were concerned with, the
problem is reduced to find a way to block Emacs from reading from the
tty while pinentry needs it.
Here's one way that might work (untested):
Currently, pgg.el uses code like this:
(while (eq 'run (process-status process))
(accept-process-output process 5))
Replacing this with the following would (in principle) prevent Emacs
from reading any input while waiting for the process to terminate.
(if window-system
(while (eq 'run (process-status process))
(accept-process-output process 5))
;; Don't read from tty in case pinentry needs it.
(accept-process-output process nil nil 1))
But we may also need to define SYNC_INPUT to make this work reliable ??
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Fix needed for communication with gpg-agent, Richard Stallman, 2007/02/17
- Re: Fix needed for communication with gpg-agent, Chong Yidong, 2007/02/18
- Re: Fix needed for communication with gpg-agent, Richard Stallman, 2007/02/19
- Re: Fix needed for communication with gpg-agent, Werner Koch, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Richard Stallman, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Werner Koch, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Chong Yidong, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Richard Stallman, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Richard Stallman, 2007/02/23
- Re: Fix needed for communication with gpg-agent, Chong Yidong, 2007/02/23