chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] [PATCH 4/4] openssl: disable interrupts


From: Florian Zumbiehl
Subject: [Chicken-users] [PATCH 4/4] openssl: disable interrupts
Date: Tue, 2 Apr 2013 07:01:27 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Disable scheduling in order to prevent error checking races between threads.
---

Well, I still don't have a clue whether disabling interrupts is actually a
bad idea somehow, but I don't see any easy way to rewrite the code to avoid
preemptive context switches that could screw up the error checking code
paths.

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

diff --git a/openssl.scm b/openssl.scm
index d43b228..31c76fd 100644
--- a/openssl.scm
+++ b/openssl.scm
@@ -33,6 +33,7 @@
 (declare
  (usual-integrations)
  (no-procedure-checks-for-usual-bindings)
+ (disable-interrupts)
  (bound-to-procedure
    ##sys#update-errno
    ##sys#signal-hook
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]