Skip to content

Commit a0ab08b

Browse files
committed
Hope this fixes SIGILL on OpenBSD
1 parent f1011f0 commit a0ab08b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/socket/test.scm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,12 @@
272272
(let ()
273273
(define server (make-server-socket "0"))
274274
(define t (make-thread
275-
(lambda ()
276-
(socket-read-select #f server))))
275+
(lambda ()
276+
(guard (e (else (print e)))
277+
(socket-read-select #f server)))))
277278
(test-error "not blocked" condition? (thread-interrupt! t))
278279
(thread-start! t)
280+
(thread-yield!)
279281
(thread-sleep! 1) ;; wait a bit
280282
(test-assert "thread-interrupt!" (thread-interrupt! t))
281283
(test-equal "result" '() (thread-join! t))

0 commit comments

Comments
 (0)