+ Jim Prewett <[EMAIL PROTECTED]>:

| I guess I will work around this by writing a nugget of information
| to the FIFO before opening it to ensure that there is input. :(

Nah.  You can open it nonblocking.  Works fine on freebsd, which you
say you are using:

CL-USER> (defparameter *fifofd* (unix:unix-open
                                 "/tmp/fifo"
                                 (logior unix:o_rdonly unix:o_nonblock)
                                 #o444))
*fifofd*
CL-USER> *fifofd*
8
CL-USER> (defparameter *fifo* (system:make-fd-stream *fifofd* :input t))
*fifo*

Now *fifo* is an ordinary Lisp stream which you can read to your
heart's content.

- Harald


Reply via email to