aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/os.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/os.c')
-rw-r--r--contrib/less/os.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/less/os.c b/contrib/less/os.c
index 4c532e9350e7..6e37bb2aaf57 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);
}