projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Must distinguish between "ambiguous" and "unknown" commands.
[unix-history]
/
usr
/
src
/
usr.bin
/
tail
/
tail.c
diff --git
a/usr/src/usr.bin/tail/tail.c
b/usr/src/usr.bin/tail/tail.c
index
bdf481b
..
17c70d9
100644
(file)
--- a/
usr/src/usr.bin/tail/tail.c
+++ b/
usr/src/usr.bin/tail/tail.c
@@
-11,7
+11,7
@@
char copyright[] =
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)tail.c 5.
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)tail.c 5.
3
(Berkeley) %G%";
#endif not lint
/* tail command
#endif not lint
/* tail command
@@
-232,6
+232,7
@@
fexit()
for (;;)
{ sleep(1);
while ((n = read (0, bin, BUFSIZ)) > 0)
for (;;)
{ sleep(1);
while ((n = read (0, bin, BUFSIZ)) > 0)
- (void)write (1, bin, n);
+ if (write (1, bin, n) < 0)
+ exit(1);
}
}
}
}