1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Fix ,profile in pure modules

* libguile/scmsigs.c (close_1): Make the async closure in an environment
  where `lambda' has its usual meaning.  Fixes #21013.
This commit is contained in:
Andy Wingo 2016-06-24 09:50:23 +02:00
parent 20718dd94b
commit 7d550c4ea0

View file

@ -109,8 +109,10 @@ static SIGRETTYPE (*orig_handlers[NSIG])(int);
static SCM
close_1 (SCM proc, SCM arg)
{
return scm_primitive_eval_x (scm_list_3 (scm_sym_lambda, SCM_EOL,
scm_list_2 (proc, arg)));
/* Eval in the root module so that `lambda' has its usual meaning. */
return scm_eval (scm_list_3 (scm_sym_lambda, SCM_EOL,
scm_list_2 (proc, arg)),
scm_the_root_module ());
}
#if SCM_USE_PTHREAD_THREADS