[gambit-list] output ports created with ##open-predefined not being garbage collected

Alejandro Santana santana at mailbox.org
Sun Apr 5 01:59:42 EDT 2020


Thanks for the explanation.

> BTW, why do you need this?

Just learning scheme and c. I wanted to have gambit receive s-exps over a unix domain socket. I figured
it would be simplest if I could turn the file descriptor returned from accept into a port and call scheme's
read on it. I can do without this though and I'd rather not have ports piling up.

I'm curious though if there's a better way to turn a file descriptor into a port. ##open-predefined is what
I saw mentioned when I searched the mailing list.




More information about the Gambit-list mailing list