summaryrefslogtreecommitdiff
path: root/usr.bin/wall/ttymsg.c
diff options
context:
space:
mode:
authorGuy Helmer <ghelmer@FreeBSD.org>2000-06-09 19:38:28 +0000
committerGuy Helmer <ghelmer@FreeBSD.org>2000-06-09 19:38:28 +0000
commit7111b0acefc667e94cbfbcfc422e74791a80acbd (patch)
tree5be520ec7b605eef019646ee947a122e51d03ce7 /usr.bin/wall/ttymsg.c
parent24f8e0e948def08cd7583fcc47683dd2979d6f80 (diff)
Notes
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 2b58a1b97eb8..a42ef412af98 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;
}
/*