1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-15 13:34:18 +01:00

unposted: add explanatory comment for blocking around fork()

This commit is contained in:
Peter Stephenson 2007-12-07 14:07:50 +00:00
parent cefc0d927f
commit c264a24a38
2 changed files with 8 additions and 0 deletions

@ -1,5 +1,7 @@
2007-12-07 Peter Stephenson <pws@csr.com>
* Unposted: Src/exec.c: add explanatory comment for 24170/24179.
* 24180: configure.ac, Src/utils.c: back off (most of) 24148.
* 24179: Src/exec.c: alter 241770 to use queue_signals().

@ -239,6 +239,12 @@ zfork(struct timeval *tv)
}
if (tv)
gettimeofday(tv, &dummy_tz);
/*
* Queueing signals is necessary on Linux because fork()
* manipulates mutexes, leading to deadlock in memory
* allocation. We don't expect fork() to be particularly
* zippy anyway.
*/
queue_signals();
pid = fork();
unqueue_signals();