From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: bug#15228: [PATCH] Close output port of I/O pipes Date: Sat, 25 Jun 2016 17:49:50 +0200 Message-ID: <8760sxb74x.fsf@pobox.com> References: <628d9c7d-e7d5-6e55-1361-316629db8b4b@primfilat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466869834 4424 80.91.229.3 (25 Jun 2016 15:50:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 15:50:34 +0000 (UTC) Cc: guile-devel@gnu.org To: Josep Portella Florit Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jun 25 17:50:25 2016 Return-path: Envelope-to: guile-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 1bGpqi-000193-JN for guile-devel@m.gmane.org; Sat, 25 Jun 2016 17:50:24 +0200 Original-Received: from localhost ([::1]:50424 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGpqh-0005Oy-Jf for guile-devel@m.gmane.org; Sat, 25 Jun 2016 11:50:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGpqQ-0005NG-6N for guile-devel@gnu.org; Sat, 25 Jun 2016 11:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGpqL-0004KD-HO for guile-devel@gnu.org; Sat, 25 Jun 2016 11:50:06 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:57540 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGpqL-0004Jk-DT for guile-devel@gnu.org; Sat, 25 Jun 2016 11:50:01 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id AB0501EBC4; Sat, 25 Jun 2016 11:49:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=n15XBKdPM13EF2E9GED/ED59+h4=; b=EEhr5n K2HYSqLGmAJ4i8VEIl+LWga4QquFizuLLDUCS/2NEbJbGcpXIy/AKBTH/eOJrStE e/K31IriVNkCkKgqC7lp8EvT9fH5rHb2SNQH27CvO4lgRPwQhzX9v04lRDhjAFwW sWrhImqLS5J+0ow/CIij6zVwX8V1otUBE+DoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=TIlMerb8YBWMEvbBrLAKrCTl4haLB3fN eEE1gycLa7ERIAvE4frnqQ+JfaI37trJoO/X49MosO+/vIRLXCm5RgFRa8wsg7Wp j2BHEcf9fgUBk9SiuC21JLsTxcCOljDg9Sji/+6dS2Wqw1Ky6dDB0b9r+a53AqpC W3guPM9hfwc= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A46891EBC3; Sat, 25 Jun 2016 11:49:58 -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-sasl2.pobox.com (Postfix) with ESMTPSA id C418C1EBC1; Sat, 25 Jun 2016 11:49:57 -0400 (EDT) In-Reply-To: <628d9c7d-e7d5-6e55-1361-316629db8b4b@primfilat.com> (Josep Portella Florit's message of "Sat, 25 Jun 2016 15:51:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 77F9954E-3AEC-11E6-B5BE-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.67 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18436 Archived-At: 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