diff options
| author | Paul Saab <ps@FreeBSD.org> | 2000-07-01 12:38:24 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2000-07-01 12:38:24 +0000 |
| commit | 5848d02f2972834a7e0792d4f06a666047499b81 (patch) | |
| tree | 9cf90c622a9880dba9488ce440fea95b8d2ffa79 /usr.bin | |
| parent | 3110f35b9074c5bdc29a31cc23c1933419d35f61 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/wall/ttymsg.c | 4 |
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; } /* |
