already running for other operations.
+2006-05-01 Daiki Ueno <ueno@unixuser.org>
+
+ * epg.el (epg-start): Signal an error if the process of CONTEXT is
+ already running for other operations.
+
2006-04-30 Daiki Ueno <ueno@unixuser.org>
* epa.el (epa-delete-keys): Support deletion of secret keys.
(defun epg-start (context args)
"Start `epg-gpg-program' in a subprocess with given ARGS."
+ (if (eq (process-status (epg-context-process context)) 'run)
+ (error "%s is already running in this context"
+ (if (eq (epg-context-protocol context) 'CMS)
+ epg-gpgsm-program
+ epg-gpg-program)))
(let* ((args (append (list "--no-tty"
"--status-fd" "1"
"--yes")