mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* epg.el (epg--start): Ignore errors when /dev/fd/0 does not exist.
This commit is contained in:
parent
a8aa6c2d08
commit
c2cf1829dd
2 changed files with 10 additions and 3 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2013-01-03 Daiki Ueno <ueno@gnu.org>
|
||||
|
||||
* epg.el (epg--start): Ignore errors when /dev/fd/0 does not
|
||||
exist. (Bug#13344)
|
||||
|
||||
2013-01-03 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* mail/rmail.el (rmail-set-header-1): Ignore case.
|
||||
|
|
|
|||
|
|
@ -1167,9 +1167,11 @@ This function is for internal use only."
|
|||
;; use `terminal-name' here to get the real pty name for the child
|
||||
;; process, though /dev/fd/0" is not portable.
|
||||
(with-temp-buffer
|
||||
(when (= (call-process "tty" "/dev/fd/0" t) 0)
|
||||
(delete-backward-char 1)
|
||||
(setq terminal-name (buffer-string))))
|
||||
(condition-case nil
|
||||
(when (= (call-process "tty" "/dev/fd/0" t) 0)
|
||||
(delete-backward-char 1)
|
||||
(setq terminal-name (buffer-string)))
|
||||
(file-error)))
|
||||
(when terminal-name
|
||||
(setq process-environment
|
||||
(cons (concat "GPG_TTY=" terminal-name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue