[gambit-list] with-output-to-process hangs in OSX

Marc Feeley feeley at iro.umontreal.ca
Mon Nov 14 21:31:05 EST 2011


On 2011-11-14, at 9:15 PM, Meng Zhang wrote:

> What happens when you try the code below?
> 
> > (with-output-to-process
> >  (list path: "sed"
> >        arguments: '("-e" "s/n/N/g")
> >        stdout-redirection: #f)
> >  (lambda ()
> >    (display "nothing\n")))
> 
> Do you get the output on the screen?
> Yes, it prints "NothiNg" and then fall asleep without exiting.(in 4.6.1)

OK.  That is to be expected because there was a bug in the closing of the process file descriptors which was fixed in commit ec92f752f7c05c4d1247bb15acdb47eaaec82791 in September 2011, before v4.6.2 was released.

Marc



More information about the Gambit-list mailing list