From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Fri, 23 Feb 2007 17:09:34 -0500 Message-ID: References: <87irdzs6pp.fsf@stupidchicken.com> <87r6siy5he.fsf@wheatstone.g10code.de> <87irdtroxe.fsf@wheatstone.g10code.de> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1172268747 4888 80.91.229.12 (23 Feb 2007 22:12:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 22:12:27 +0000 (UTC) Cc: wilde@sha-bang.de, cyd@stupidchicken.com, ueno@unixuser.org, storm@cua.dk, emacs-devel@gnu.org To: Werner Koch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 23 23:12:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKieI-0007FQ-Ij for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 23:12:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKieI-000510-7C for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 17:12:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKid9-0004Vp-Qe for emacs-devel@gnu.org; Fri, 23 Feb 2007 17:11:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKid8-0004VE-MO for emacs-devel@gnu.org; Fri, 23 Feb 2007 17:11:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKid8-0004V6-DW for emacs-devel@gnu.org; Fri, 23 Feb 2007 17:11:06 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HKid7-0003vu-TF for emacs-devel@gnu.org; Fri, 23 Feb 2007 17:11:05 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1HKibe-0000ku-Kj; Fri, 23 Feb 2007 17:09:34 -0500 In-reply-to: <87irdtroxe.fsf@wheatstone.g10code.de> (message from Werner Koch on Fri, 23 Feb 2007 14:20:13 +0100) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:66709 Archived-At: The problem is that I have found no way to set pinentry as the foreground process. tcsetpgrp() won't work because pinentry runs in a different session (is is being called by gpg-agent which has used setsid). Alas, I don't remember what setsid does, so I can't think about this question. However, someone reported that pinentry was able to read from the tty, and that the only problem was to stop Emacs from also trying to read. If that is true, setsid apparently is not a real obstacle -- at least on one kind of system. Maybe it is a real obstacle on some other kinds of system.