1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

31350: block SIGWINCH nearly all the time, except

when about to calculate prompts or do synchronous read, so
syscalls are not interrupted by window size changes.
This commit is contained in:
Bart Schaefer 2013-04-28 17:47:43 -07:00
parent cbf6f144a9
commit d19e18c68d
5 changed files with 28 additions and 0 deletions

View file

@ -59,6 +59,14 @@
#define child_block() signal_block(sigchld_mask)
#define child_unblock() signal_unblock(sigchld_mask)
#ifdef SIGWINCH
# define winch_block() signal_block(signal_mask(SIGWINCH))
# define winch_unblock() signal_unblock(signal_mask(SIGWINCH))
#else
# define winch_block() 0
# define winch_unblock() 0
#endif
/* ignore a signal */
#define signal_ignore(S) signal(S, SIG_IGN)