[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH 1/2] tcp: disable interrupts
From: |
Florian Zumbiehl |
Subject: |
[Chicken-hackers] [PATCH 1/2] tcp: disable interrupts |
Date: |
Sat, 16 Mar 2013 17:56:41 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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] [PATCH 1/2] tcp: disable interrupts,
Florian Zumbiehl <=
- [Chicken-hackers] [PATCH 2/2] tcp: fix file descriptor leaks and don't clobber errno, Florian Zumbiehl, 2013/03/16
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Felix, 2013/03/16
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Jim Ursetto, 2013/03/16
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Florian Zumbiehl, 2013/03/17
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Jörg F . Wittenberger, 2013/03/17
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Jim Ursetto, 2013/03/17
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Florian Zumbiehl, 2013/03/18
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Felix, 2013/03/18
- Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Jim Ursetto, 2013/03/18
Re: [Chicken-hackers] [PATCH 1/2] tcp: disable interrupts, Jörg F . Wittenberger, 2013/03/17