guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 02/07: Remove thread-exited? check in sigaction


From: Andy Wingo
Subject: [Guile-commits] 02/07: Remove thread-exited? check in sigaction
Date: Sun, 8 Jan 2017 14:51:35 +0000 (UTC)

wingo pushed a commit to branch master
in repository guile.

commit ca598d31405ac77d5515a3d0b70eda9d41b5bf10
Author: Andy Wingo <address@hidden>
Date:   Sun Jan 8 12:26:10 2017 +0100

    Remove thread-exited? check in sigaction
    
    * libguile/scmsigs.c (scm_sigaction_for_thread): Remove check that
      thread hadn't exited.  This check was racy as it's always possible
      that the other thread exits between checking it or even after the
      signal handler is installed.
---
 libguile/scmsigs.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c
index 36143af..f210380 100644
--- a/libguile/scmsigs.c
+++ b/libguile/scmsigs.c
@@ -327,11 +327,7 @@ SCM_DEFINE (scm_sigaction_for_thread, "sigaction", 1, 3, 0,
   if (SCM_UNBNDP (thread))
     thread = scm_current_thread ();
   else
-    {
-      SCM_VALIDATE_THREAD (4, thread);
-      if (scm_c_thread_exited_p (thread))
-       SCM_MISC_ERROR ("thread has already exited", SCM_EOL);
-    }
+    SCM_VALIDATE_THREAD (4, thread);
 
   scm_i_ensure_signal_delivery_thread ();
 



reply via email to

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