Name the event registered by block-on-io-descriptor.
authorMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 20:28:57 +0000 (13:28 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Sat, 11 Jul 2015 20:28:57 +0000 (13:28 -0700)
src/runtime/thread.scm

index e3bd9cc17c3a4b1e656a54c1292a7e697552c8f3..496a335607fe2ee363486f8fc191fb2b3c282a51 100644 (file)
@@ -698,9 +698,8 @@ USA.
        (if registration (error "Re-entered block-on-io-descrptor."))
        (set! registration
             (register-io-thread-event descriptor mode (current-thread)
-                                      (lambda (mode)
-                                        (set! result mode)
-                                        unspecific))))
+                                      (named-lambda (block-on-io-event mode)
+                                        (set! result mode)))))
      (lambda ()
        (with-thread-events-blocked
        (lambda ()