On 11/2/22 08:09, Eli Zaretskii wrote: >> Why canʼt we just call `child_signal_init' from `init_process_emacs' >> instead of `create_process'? > Maybe we could. Assuming the signal stuff is already set so early, I > don't know exactly how posix_spawn works. child_signal_init is reasonably heavyweight in that it keeps a couple of file descriptors open, so the idea is to be lazy and not call it unless Emacs plans to have children. I installed the attached, which is like Robert's patch except it keeps the critical section smaller and checks the declaration of the now-extern function. Please give it a try. I'll boldly close the bug report; we can reopen it if I'm wrong.