From b9795b5671ac67f39ae8f75d04c53e04ba1b0602 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 3 Apr 1998 22:06:48 +0200
Subject: [PATCH] Fixed bug.

Rev: src/modules/Pipe/pipe.c:1.17
---
 src/modules/Pipe/pipe.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/modules/Pipe/pipe.c b/src/modules/Pipe/pipe.c
index 8ef4aff54e..8e1cd73fd7 100644
--- a/src/modules/Pipe/pipe.c
+++ b/src/modules/Pipe/pipe.c
@@ -22,7 +22,7 @@
 #include <fcntl.h>
 
 #include "global.h"
-RCSID("$Id: pipe.c,v 1.16 1998/04/03 19:58:15 grubba Exp $");
+RCSID("$Id: pipe.c,v 1.17 1998/04/03 20:06:48 grubba Exp $");
 
 #include "threads.h"
 #include "stralloc.h"
@@ -453,8 +453,9 @@ static INLINE struct pike_string* gimme_some_data(unsigned long pos)
 	  if (sp[-1].type == T_STRING) {
 	    append_buffer(sp[-1].u.string);
 	  } else {
-	    this->sleeping = 0;
-	    /* We're not sleeping -- we're dead... */
+	    /* FIXME: Should probably check the return value. */
+	    /* EOF */
+	    input_finish();
 	  }
 	  pop_stack();
 	} else {
-- 
GitLab