add close after shutdown call
[php-ancillary.git] / 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);