[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issues with socket.fs on OpenBSD
From: |
nature |
Subject: |
Re: Issues with socket.fs on OpenBSD |
Date: |
Tue, 08 Nov 2022 16:00:02 +0100 |
User-agent: |
mu4e 1.8.11; emacs 28.2 |
After poking around some more I realized that changing the MSG_WAITALL
flag used for recv to 0 (no flags) gave recv the same behavior as read
and henced fixed the read-socket word on OpenBSD.
Please see the attached patch.
--- socket.fs.old Tue Nov 8 15:34:30 2022
+++ socket.fs Tue Nov 8 15:35:21 2022
@@ -476,7 +476,7 @@
: (rs) ( socket c-addr maxlen -- c-addr size )
third dup >r false blocking-mode rot fileno -rot
- over >r msg_waitall recv
+ over >r 0 recv
dup 0< IF 0 max
errno dup 0<> swap ewouldblock <> and ?ior
THEN
Best,
--
nature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Issues with socket.fs on OpenBSD,
nature <=