diff options
| author | Kamil Dudka <kdudka@redhat.com> | 2015-10-26 14:27:26 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-10-26 14:27:26 -0700 |
| commit | 81fa9fd25a57ebaf7e242bc678a6fd179bbdb718 (patch) | |
| tree | 4bad551e3f23807a1189dc9349442ff18b63dedc /Src | |
| parent | 36968: use addmodulefd() to tell the shell about the descriptor of the dbm file (diff) | |
| download | zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar.gz zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar.bz2 zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar.lz zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar.xz zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.tar.zst zsh-81fa9fd25a57ebaf7e242bc678a6fd179bbdb718.zip | |
36906: quite_signals() in ZSH_MEM realloc()
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/mem.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1668,8 +1668,13 @@ realloc(MALLOC_RET_T p, MALLOC_ARG_T size) int i, l = 0; /* some system..., see above */ - if (!p && size) - return (MALLOC_RET_T) malloc(size); + if (!p && size) { + queue_signals(); + r = malloc(size); + unqueue_signals(); + return (MALLOC_RET_T) r; + } + /* and some systems even do this... */ if (!p || !size) return (MALLOC_RET_T) p; |
