I am getting these messages (see subject, N is digit) (on stderr i think). Am i
doing something wrong?
Michal> I am getting these messages (see subject, N is digit) (on stderr i think). Am i
Michal> doing something wrong?
It means the garbage collector has just gc'ed an I/O channel, probably
one associated with a port. When it does this, it closes the
channel. It probably means you're not explicitly closing a port even
though it's become garbage.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
Reminder - probably superfluous, but anyway: The CALL-WITH-INPUT/
/OUTPUT-FILE procedures, when applicable, do these menial jobs
(open files, close ports) for you, serving both comfort and silence.
rthappe
> Reminder - probably superfluous, but anyway: The CALL-WITH-INPUT/
> /OUTPUT-FILE procedures, when applicable, do these menial jobs
> (open files, close ports) for you, serving both comfort and silence.
i know.
My construction is: (i hope this is the right one):
| (receive (port child) (run/port+proc (diff -rq ,dir ,master))
I would like silence (optional), though.
> My construction is: (i hope this is the right one):
> | (receive (port child) (run/port+proc (diff -rq ,dir ,master))
>
> I would like silence (optional), though.
You can, if the return value of the RECEIVE block doesn't matter,
finally (CLOSE PORT), otherwise you may prefer to
(CLOSE-AFTER PORT (LAMBDA (PORT) (OPERATE-ON PORT))), like so:
(receive (port child) (run/port+proc (diff -rq ,dir ,master))
(close-after port (lambda (ip) (port->string ip))))
rthappe