From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Fix needed for communication with gpg-agent Date: Fri, 23 Feb 2007 11:40:57 -0500 Message-ID: <87zm746d46.fsf@stupidchicken.com> References: <87irdzs6pp.fsf@stupidchicken.com> <87r6siy5he.fsf@wheatstone.g10code.de> <87irdtroxe.fsf@wheatstone.g10code.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172249311 29885 80.91.229.12 (23 Feb 2007 16:48:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 16:48:31 +0000 (UTC) Cc: wilde@sha-bang.de, ueno@unixuser.org, storm@cua.dk, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 23 17:48:24 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 1HKdap-00065T-Kk for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 17:48:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKdap-0000bV-CV for ged-emacs-devel@m.gmane.org; Fri, 23 Feb 2007 11:48:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKdae-0000ak-Dn for emacs-devel@gnu.org; Fri, 23 Feb 2007 11:48:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKdad-0000ac-W9 for emacs-devel@gnu.org; Fri, 23 Feb 2007 11:48:12 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HKdad-0006DW-Kn; Fri, 23 Feb 2007 11:48:11 -0500 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l1NGm7FF011485; Fri, 23 Feb 2007 11:48:07 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id l1NGewjp028199; Fri, 23 Feb 2007 11:40:59 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-SIXTY-THREE.MIT.EDU [18.19.5.63]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l1NGevxD003134; Fri, 23 Feb 2007 11:40:58 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HKdTd-0000ek-00; Fri, 23 Feb 2007 11:40:57 -0500 In-Reply-To: <87irdtroxe.fsf@wheatstone.g10code.de> (Werner Koch's message of "Fri\, 23 Feb 2007 14\:20\:13 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0 X-detected-kernel: Solaris 9.1 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:66680 Archived-At: Werner Koch writes: >> However, enabling pinentry to read from the tty probably requires >> setting the tty's process group to the one that pinentry is in. That >> will probably have the effect that Emacs can't read from the tty >> during that time. If so, that is ok. > > 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). ...and since processes are not allowed to migrate between sessions, this approach is pretty much sunk.