Add (declare (disable-interrupts)) to tcp so that errno doesn't get changed at
inappropriate points during execution.
---

I don't really have a clue whether this is the correct way to do it, but
the code that was breaking before is not breaking anymore with this patch
applied ...

 tcp.scm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tcp.scm b/tcp.scm
index cc68def..3e507e6 100644
--- a/tcp.scm
+++ b/tcp.scm
@@ -28,6 +28,7 @@
 (declare
   (unit tcp)
   (uses extras scheduler)
+  (disable-interrupts)
   (export tcp-close tcp-listen tcp-connect tcp-accept tcp-accept-ready? 
##sys#tcp-port->fileno tcp-listener? tcp-addresses
          tcp-abandon-port tcp-listener-port tcp-listener-fileno 
tcp-port-numbers tcp-buffer-size
          tcp-read-timeout tcp-write-timeout tcp-accept-timeout 
tcp-connect-timeout)
-- 
1.7.2.5


_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to