From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add facility to collect stderr of async subprocess Date: Tue, 31 Mar 2015 15:55:14 +0300 Message-ID: <83ego5tjgt.fsf@gnu.org> References: <87d24d3uwz.fsf-ueno@gnu.org> <83pp87y6iu.fsf@gnu.org> <83mw3bxz9f.fsf@gnu.org> <83k2yfx8zi.fsf@gnu.org> <83egomxog1.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427806582 15024 80.91.229.3 (31 Mar 2015 12:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 12:56:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daiki Ueno Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 31 14:56:09 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 1Ycvi7-0003Dt-1d for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 14:56:03 +0200 Original-Received: from localhost ([::1]:38579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycvi6-0005Wz-IT for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 08:56:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycvhc-0005VG-3Y for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:55:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcvhX-0004E9-UP for emacs-devel@gnu.org; Tue, 31 Mar 2015 08:55:32 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:33578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcvhX-0004D7-NP; Tue, 31 Mar 2015 08:55:27 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NM200J00TYW3F00@mtaout24.012.net.il>; Tue, 31 Mar 2015 15:47:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM200GUWU6HIR30@mtaout24.012.net.il>; Tue, 31 Mar 2015 15:47:05 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 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:184617 Archived-At: > From: Daiki Ueno > Cc: emacs-devel@gnu.org > Date: Tue, 31 Mar 2015 16:27:10 +0900 > > > In addition, this: > > > >> (let ((stderr (make-pipe-process :name "stderr"))) > >> (make-process :name "test" > >> :buffer (current-buffer) > >> :command (list (expand-file-name "./test.sh")) > >> :stderr stderr) > >> (set-process-filter stderr ...)) > > > > introduces a new concept whereby a process object ('stderr' in this > > case) can be passed to another subprocess, which AFAIK was not > > possible until now, at least not on MS-Windows. > > I don't get your concern here. The above code is merely meant to pass > the actual FD of the child end of pipe, through an opaque Lisp object > `stderr'. Then perhaps there's no problem. However, please note that the call to emacs_pipe2 in make-pipe-process will hit an assertion in w32.c's implementation of pipe2. > I've just set up MSYS2 and tried the Emacs w64 build instruction[1] (and > also obtained a copy of Hart's book). Let me try again later. > > Footnotes: > [1] http://sourceforge.net/p/emacsbinw64/wiki/Build%20guideline%20for%20MSYS2-MinGW-w64%20system/ I'd be happier if you used nt/INSTALL instead, and reported any changes/additions needed for supporting MSYS2. Thanks.