diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-07 14:07:50 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-07 14:07:50 +0000 |
| commit | c264a24a38188a2f8bd3e7a591490bb2cfddea26 (patch) | |
| tree | 4a62c735390dada8d6d2a8c8f781853cb1bb30d6 /Src/exec.c | |
| parent | 24179: use queue_signals() for 24170 (diff) | |
| download | zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar.gz zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar.bz2 zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar.lz zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar.xz zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.tar.zst zsh-c264a24a38188a2f8bd3e7a591490bb2cfddea26.zip | |
unposted: add explanatory comment for blocking around fork()
Diffstat (limited to 'Src/exec.c')
| -rw-r--r-- | Src/exec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c index 9695011e3..3c13da476 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -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(); |
