diff options
Diffstat (limited to 'lib/libncurses')
-rw-r--r-- | lib/libncurses/lib_tstp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libncurses/lib_tstp.c b/lib/libncurses/lib_tstp.c index 272c274..4412dcb 100644 --- a/lib/libncurses/lib_tstp.c +++ b/lib/libncurses/lib_tstp.c @@ -33,6 +33,9 @@ sigset_t mask; act.sa_handler = SIG_DFL; sigemptyset(&act.sa_mask); act.sa_flags = 0; +#ifdef SA_RESTART + act.sa_flags |= SA_RESTART; +#endif sigaction(SIGTSTP, &act, &oact); kill(getpid(), SIGTSTP); |