Fix fiforead(): losing SIGIOs - when SIGIOd by two depctls at the same time

diff -urN depinit-0.1.4/depinit/fifo.c depinit-0.1.4-mq2/depinit/fifo.c
--- depinit-0.1.4/depinit/fifo.c	2003-10-05 21:04:37.000000000 +0200
+++ depinit-0.1.4-mq2/depinit/fifo.c	2005-07-03 16:07:37.500331350 +0200
@@ -73,13 +73,15 @@
 )	{
 	ssize_t size;
 	char *here = NULL;
+	int had_command = 1;
 
-	while ((size = read(0, buffer+in, BUFFER_SIZE-in)) != 0) {
+	while ((size = read(0, buffer+in, BUFFER_SIZE-in)) != 0 || (in > 0 && had_command)) {
 		if (size < 0) {
 			log_error(0, "Could not read control file.");
 			break;
 		}
-		in+=size;
+		had_command = 0;
+		in += size;
 		here = memchr(buffer, STX, in);
 		if (here) {
 			if (here - buffer) {
@@ -92,6 +94,7 @@
 				command(buffer+1);
 				in -= 1+here-buffer;
 				if (in) memcpy(buffer, here+1, in);
+				had_command = 1;
 			}
 		}
 		else	in = 0;
