add close after shutdown call
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Mon, 23 Jul 2012 09:40:13 +0000 (11:40 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.com>
Mon, 23 Jul 2012 09:40:13 +0000 (11:40 +0200)
php-ancillary.c

index 8c43397..f069bff 100644 (file)
@@ -107,7 +107,7 @@ PHP_FUNCTION(ancillary_getstream)
         }
     }
     shutdown(fd_out[1], SHUT_RDWR);
-
+    close(fd_out[1]);
     ZVAL_STRING(zheaders, headers, 1);
     free(headers);