From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner Koch Newsgroups: gmane.emacs.devel Subject: Re: pipe Date: Fri, 13 Mar 2015 21:08:21 +0100 Message-ID: <87wq2kd5je.fsf@vigenere.g10code.de> References: <83twxp2mew.fsf@gnu.org> <87h9tp3wsp.fsf-ueno@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1426281982 18850 80.91.229.3 (13 Mar 2015 21:26:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2015 21:26:22 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Daiki Ueno Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 13 22:26:18 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWX60-0004Fz-SB for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 22:26:17 +0100 Original-Received: from localhost ([::1]:38719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWX60-0000T8-3L for ged-emacs-devel@m.gmane.org; Fri, 13 Mar 2015 17:26:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWVvm-0008D8-Ln for emacs-devel@gnu.org; Fri, 13 Mar 2015 16:11:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWVvZ-0003Wg-6N for emacs-devel@gnu.org; Fri, 13 Mar 2015 16:11:38 -0400 Original-Received: from kerckhoffs.g10code.com ([217.69.77.222]:53552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWVvY-0003Ma-WD for emacs-devel@gnu.org; Fri, 13 Mar 2015 16:11:25 -0400 Original-Received: from uucp by kerckhoffs.g10code.com with local-rmail (Exim 4.80 #2 (Debian)) id 1YWVvS-0001N4-Az for ; Fri, 13 Mar 2015 21:11:18 +0100 Original-Received: from wk by vigenere.g10code.de with local (Exim 4.84 #3 (Debian)) id 1YWVsc-0003Qm-Ei; Fri, 13 Mar 2015 21:08:22 +0100 Organisation: g10 Code GmbH X-message-flag: Mails containing HTML will not be read! Please send only plain text. OpenPGP: id=F2AD85AC1E42B367; url=finger:wk@g10code.com Mail-Followup-To: Daiki Ueno , Eli Zaretskii , emacs-devel@gnu.org In-Reply-To: <87h9tp3wsp.fsf-ueno@gnu.org> (Daiki Ueno's message of "Fri, 13 Mar 2015 21:29:42 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 217.69.77.222 X-Mailman-Approved-At: Fri, 13 Mar 2015 17:26:13 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183855 Archived-At: On Fri, 13 Mar 2015 13:29, ueno@gnu.org said: >> Can these features of gpg be used on MS-Windows? IOW, how do you >> invoke a subprocess with redirected file descriptors beyond the 3 >> standard ones, in a way that will work not only on Posix platforms >> that support the full 'fork' functionality? > > Actually, I'm not sure, but there was a porting effort of the GPG stack > to Windows and Windows CE, and I think there should be a way to work GnuPG-2 runs very well on Windows for about 10 years. Windows has pipes but inheriting only specific handles (OS file descriptors) is a bit complicated and requires the use of a wrapper process (gpgme-w32spawn, Glib uses something similar). The old WindowsCE has only per-process file descriptors. Thus I had to write a device driver to implement OS wide file descriptors. But the old WindowsCE is more or less dead. Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.