bug#68087: Signal handlers not called after ‘primitive-fork’

2024-01-24 Thread Ludovic Courtès
Ludovic Courtès skribis: > Fixes . > > * libguile/scmsigs.h (scm_i_signals_pre_fork, scm_i_signals_post_fork): > New declarations. > (scm_i_signal_delivery_thread): Change type to SCM.. > * libguile/threads.c (scm_all_threads): Adjust accordingly and exclude > threads

bug#68087: Signal handlers not called after ‘primitive-fork’

2023-12-28 Thread Ludovic Courtès
In 3.0.9 and current ‘main’, I get this: --8<---cut here---start->8--- $ cat sigaction-fork.scm (use-modules (ice-9 match)) ;; This call spawns the signal delivery thread as a side effect. (sigaction SIGALRM (lambda (signal) (pk 'got-signal! signal))) (m