Subject: [bug#32121] [PATCH 2/5] utils: Reset the Fiber dynamic environment in %NON-BLOCKING.

From: [email-masked] (Ludovic Courtès)
Date: Fri, 13 Jul 2018 10:35:18 +0200

Clément Lassieur <[email-masked]> skribis:

> * src/cuirass/utils.scm (%non-blocking): Wrap body in PARAMETERIZE form that
> clears CURRENT-FIBER.
>
> So that PUT-MESSAGE doesn't try to suspend itself within CALL-WITH-NEW-THREAD.
> See https://lists.gnu.org/archive/html/guile-devel/2018-07/msg00009.html.

Good catch!

> +  (parameterize (((@@ (fibers internal) current-fiber) #f))
> +    (let ((channel (make-channel)))

Instead of using @@, I think you can add an explicit:

  #:use-module ((fibers internal) #:select (current-fiber))

at the top.

OK with this change!

Could you also report the issue to Andy (there’s a GitHub thing or you
can email guile-user I guess)?

Thanks,
Ludo’.