From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#15228: [PATCH] Close output port of I/O pipes Date: Mon, 27 Jun 2016 10:05:06 +0200 Message-ID: <87ziq783bh.fsf@pobox.com> References: <628d9c7d-e7d5-6e55-1361-316629db8b4b@primfilat.com> <8760sxb74x.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467014786 28526 80.91.229.3 (27 Jun 2016 08:06:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 08:06:26 +0000 (UTC) To: 15228@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jun 27 10:06:14 2016 Return-path: Envelope-to: guile-bugs@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 1bHRYc-0004J8-1G for guile-bugs@m.gmane.org; Mon, 27 Jun 2016 10:06:14 +0200 Original-Received: from localhost ([::1]:57087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRYb-0005LO-4G for guile-bugs@m.gmane.org; Mon, 27 Jun 2016 04:06:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRYU-0005H9-Fj for bug-guile@gnu.org; Mon, 27 Jun 2016 04:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHRYQ-0003C9-7y for bug-guile@gnu.org; Mon, 27 Jun 2016 04:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRYQ-0003C5-3r for bug-guile@gnu.org; Mon, 27 Jun 2016 04:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bHRYP-0008MA-U1 for bug-guile@gnu.org; Mon, 27 Jun 2016 04:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 27 Jun 2016 08:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15228 X-GNU-PR-Package: guile X-GNU-PR-Keywords: patch Original-Received: via spool by 15228-submit@debbugs.gnu.org id=B15228.146701471832069 (code B ref 15228); Mon, 27 Jun 2016 08:06:01 +0000 Original-Received: (at 15228) by debbugs.gnu.org; 27 Jun 2016 08:05:18 +0000 Original-Received: from localhost ([127.0.0.1]:57443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHRXh-0008L9-EB for submit@debbugs.gnu.org; Mon, 27 Jun 2016 04:05:18 -0400 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:50142 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHRXf-0008L0-5e for 15228@debbugs.gnu.org; Mon, 27 Jun 2016 04:05:15 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id C115F205A3 for <15228@debbugs.gnu.org>; Mon, 27 Jun 2016 04:05:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=NP20nsFxSx92JFk6sE7OOSjYDGs=; b=XVqlFK ZMNRhKF29ld1P4mmbvxNUjQw+9w4Zj1/MgM3EBPsj8uyzhyhzmiWRoeZ24bnSz0M oUoRA8z7weNrFPJHJKDdkyz97AvhKy94afopqc7WvWgxICSlsbqimldFdhpq+pHy C2H0mSw04fiGlNgkjRCBXSeDlrP3zIVupXTJQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=kzT25+lBzPVfQpjVqm/zgGP0NKJhM9jO aovSWDP9RfYc2pT2KdStAR0nBgpARHQBEb3S0JIYjrKQcYEu8Tq4Tj140Gd5AM7C rxtfgkppWpX+DKkNQ8hdNt5Q8TnN4exHCov5BGOVEG7yE9JQQUnG2O7DItN1WKIB KpGp+pt9KBg= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id B9437205A2 for <15228@debbugs.gnu.org>; Mon, 27 Jun 2016 04:05:14 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 07DE6205A1 for <15228@debbugs.gnu.org>; Mon, 27 Jun 2016 04:05:13 -0400 (EDT) In-Reply-To: <8760sxb74x.fsf@pobox.com> (Andy Wingo's message of "Sat, 25 Jun 2016 17:49:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: E0AE17A2-3C3D-11E6-BCF6-C1836462E9F6-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8263 Archived-At: [bouncing this back to debbugs] On Sat 25 Jun 2016 17:49, Andy Wingo writes: > On Sat 25 Jun 2016 15:51, Josep Portella Florit writes: > >>> I dunno how much we should push this "processes are a single port" >>> abstraction. In many ways for OPEN_BOTH pipes it's easier to deal with >>> an input and an output port and a PID instead of the pipe abstraction. >>> WDYT? We could just expose `open-process' from (ice-9 popen) to start >>> with. It would be good to allow other fd's or ports to map to the child >>> as well, e.g. stderr or any particular port; but I don't know what >>> interface we should expose. >> >> Since patching was inconvenient for me, I eventually used: >> >> (use-modules ((ice-9 popen) #:select (open-process))) >> >> Which works even though `open-process` is not exported. > > Note that this behavior of #:select is a bug. We won't remove it in > stable-2.0 but we have removed it in master. > >> For me, exporting `open-process` and documenting it would be enough. > > Fine with me, many people have asked for this at this point. I guess > that's the next step for this bug. > >> I also like the Racket interface to processes: >> >> (I've mostly used the `process` procedure.) > > Duly noted! The more we steal from Racket, the better Guile will be :) > > Andy