help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] gst bug, first round


From: Paolo Bonzini
Subject: [Help-smalltalk] gst bug, first round
Date: Thu, 13 Jul 2006 21:30:21 +0200
User-agent: Thunderbird 1.5.0.4 (Macintosh/20060530)

This pretty trivial patch is enough for "gst pipe.st" to work (i.e. input from a tty) when pipe.st is

  | line |
  [ stdin atEnd ]
    whileFalse: [ stdout nextPutAll: stdin nextLine; nl; flush ] !

Linux resets pfd.revents on its own, but that's not portable. With this patch, at least the stream is not closed. But #atEnd is still not working correctly on pipes :-( so it is not enough if I remove the flush, and it is not enough for "cat ~/.profile | gst pipe.st", I'll take a look on the next train ride to Lugano...

--- orig/libgst/events.c
+++ mod/libgst/events.c
@@ -155,6 +155,7 @@ _gst_sync_file_polling (int fd,
  do
    {
      errno = 0;
+      pfd.revents = 0;
      result = poll (&pfd, 1, 0);
    }
  while ((result == -1) && (errno == EINTR));

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]