ttyrecのfork. Original: http://0xcc.net/ttyrec/
Revisão | 6583d1cf50c118f621933ed1e5332bf848c0698f (tree) |
---|---|
Hora | 2019-12-09 16:14:50 |
Autor | IWAMOTO Kouichi <sue@iwmt...> |
Commiter | IWAMOTO Kouichi |
update to ttyrec-1.0.4
@@ -1,6 +1,6 @@ | ||
1 | 1 | CC = gcc |
2 | 2 | CFLAGS = -O2 |
3 | -VERSION = 1.0.3 | |
3 | +VERSION = 1.0.4 | |
4 | 4 | |
5 | 5 | TARGET = ttyrec ttyplay |
6 | 6 |
@@ -108,11 +108,11 @@ ttyread (FILE *fp, Header *h, char **buf) | ||
108 | 108 | int |
109 | 109 | ttypread (FILE *fp, Header *h, char **buf) |
110 | 110 | { |
111 | - struct timeval w = {0, 250000}; | |
112 | 111 | /* |
113 | 112 | * Read persistently just like tail -f. |
114 | 113 | */ |
115 | 114 | while (ttyread(fp, h, buf) == 0) { |
115 | + struct timeval w = {0, 250000}; | |
116 | 116 | select(0, NULL, NULL, NULL, &w); |
117 | 117 | clearerr(fp); |
118 | 118 | } |
@@ -74,7 +74,7 @@ | ||
74 | 74 | #define _(FOO) FOO |
75 | 75 | |
76 | 76 | #ifdef HAVE_openpty |
77 | -#include <pty.h> | |
77 | +#include <libutil.h> | |
78 | 78 | #endif |
79 | 79 | |
80 | 80 | void done(void); |