chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve deadlock section
[chiark-utils.git]
/
cprogs
/
readbuffer.c
diff --git
a/cprogs/readbuffer.c
b/cprogs/readbuffer.c
index e48e78c6ff9fd2819e4747ddd6565ec9c269e9b8..6f2bfa138615fac07dfb4d9e2e39f66ce9b72955 100644
(file)
--- a/
cprogs/readbuffer.c
+++ b/
cprogs/readbuffer.c
@@
-27,14
+27,6
@@
*
*/
*
*/
-#include <sys/time.h>
-#include <sys/types.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-
#include "rwbuffer.h"
const char *progname= "readbuffer";
#include "rwbuffer.h"
const char *progname= "readbuffer";
@@
-47,6
+39,7
@@
int main(int argc, const char *const *argv) {
startup(argv);
waitempty= (buffersize*1)/4;
reading=1;
startup(argv);
waitempty= (buffersize*1)/4;
reading=1;
+ maxselfd=2;
while (!seeneof || used) {
while (!seeneof || used) {