unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Re: bug#15228: [PATCH] Close output port of I/O pipes
@ 2016-06-25 13:51 Josep Portella Florit
  2016-06-25 15:49 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Josep Portella Florit @ 2016-06-25 13:51 UTC (permalink / raw)
  To: wingo; +Cc: guile-devel

> 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.  For me,
exporting `open-process` and documenting it would be enough.

I also like the Racket interface to processes:
<https://docs.racket-lang.org/reference/subprocess.html>
(I've mostly used the `process` procedure.)



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <1377937797.2030.5.camel@qwghlm>]

end of thread, other threads:[~2016-06-25 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-25 13:51 bug#15228: [PATCH] Close output port of I/O pipes Josep Portella Florit
2016-06-25 15:49 ` Andy Wingo
     [not found] <1377937797.2030.5.camel@qwghlm>
2016-06-21 10:47 ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).