aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wall/ttymsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/wall/ttymsg.c')
-rw-r--r--usr.bin/wall/ttymsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/wall/ttymsg.c b/usr.bin/wall/ttymsg.c
index 2b58a1b97eb8e..a42ef412af985 100644
--- a/usr.bin/wall/ttymsg.c
+++ b/usr.bin/wall/ttymsg.c
@@ -120,7 +120,7 @@ ttymsg(iov, iovcnt, line, tmout)
continue;
}
if (errno == EWOULDBLOCK) {
- int cpid, off = 0;
+ int cpid;
if (forked) {
(void) close(fd);
@@ -143,7 +143,7 @@ ttymsg(iov, iovcnt, line, tmout)
(void) signal(SIGTERM, SIG_DFL); /* XXX */
(void) sigsetmask(0);
(void) alarm((u_int)tmout);
- (void) fcntl(fd, O_NONBLOCK, &off);
+ (void) fcntl(fd, F_SETFL, 0); /* clear O_NONBLOCK */
continue;
}
/*