chiark / gitweb /
improve deadlock section
[chiark-utils.git] / cprogs / readbuffer.c
index e48e78c6ff9fd2819e4747ddd6565ec9c269e9b8..6f2bfa138615fac07dfb4d9e2e39f66ce9b72955 100644 (file)
  *
  */
 
  *
  */
 
-#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) {