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:
parent
9591da310e
commit
1d5e60df84
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue