diff options
Diffstat (limited to 'contrib/less/os.c')
-rw-r--r-- | contrib/less/os.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/less/os.c b/contrib/less/os.c index 4c532e9..6e37bb2 100644 --- a/contrib/less/os.c +++ b/contrib/less/os.c @@ -99,6 +99,13 @@ iread(fd, buf, len) * We jumped here from intread. */ reading = 0; +#if HAVE_SIGPROCMASK + { + sigset_t mask; + sigemptyset(&mask); + sigprocmask(SIG_SETMASK, &mask, NULL); + } +#else #if HAVE_SIGSETMASK sigsetmask(0); #else @@ -106,6 +113,7 @@ iread(fd, buf, len) sigmask(~0); #endif #endif +#endif return (READ_INTR); } |