Opened 13 years ago
Closed 12 years ago
#764 closed defect (fixed)
unix-sockets: port-data is set incorrectly
Reported by: | Moritz Heidkamp | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | extensions | Version: | 4.7.x |
Keywords: | Cc: | ||
Estimated difficulty: |
Description
The data slot of ports returned by unix-sockets
's io-ports
procedure is set incorrectly:
#;1> (use unix-sockets) ; loading /usr/lib/chicken/6/unix-sockets.import.so ... ; loading /usr/lib/chicken/6/easyffi.import.so ... ; loading /usr/lib/chicken/6/unix-sockets.so ... #;2> (unix-connect "/tmp/foo.sock") #<input port "(unix)"> #<output port "(unix)"> ; 2 values #;3> (##sys#port-data #2) #(#(3 #f #f))
The attached patch fixes this by using ##sys#set-port-data!
. I hope this procedure isn't too recent!
By the way, it looks like unix-sockets
depends on easyffi
merely for the #> <# read syntax. Maybe this dependency could be gotten rid of?
Attachments (1)
Change History (5)
Changed 13 years ago by
Attachment: | fix-setting-of-port-data.patch added |
---|
comment:1 Changed 13 years ago by
Milestone: | 4.8.0 |
---|
comment:2 Changed 12 years ago by
Owner: | set to felix winkelmann |
---|---|
Status: | new → assigned |
comment:3 Changed 12 years ago by
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Patch applied (1.8), thanks very much.
Note: See
TracTickets for help on using
tickets.
Replying to syn:
It actually uses "#>! ... <#".