dmitry Wed Apr 26 17:48:45 2006 UTC
Modified files:
/php-src/sapi/cgi fastcgi.c
Log:
Revert wrong fix
http://cvs.php.net/viewcvs.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.9&r2=1.10&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.9 php-src/sapi/cgi/fastcgi.c:1.10
--- php-src/sapi/cgi/fastcgi.c:1.9 Wed Apr 26 11:08:23 2006
+++ php-src/sapi/cgi/fastcgi.c Wed Apr 26 17:48:45 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fastcgi.c,v 1.9 2006/04/26 11:08:23 dmitry Exp $ */
+/* $Id: fastcgi.c,v 1.10 2006/04/26 17:48:45 dmitry Exp $ */
#include "fastcgi.h"
#include "php.h"
@@ -618,12 +618,8 @@
RevertToSelf();
}
#else
-#if 1
- shutdown(req->fd, 2);
-#else
close(req->fd);
#endif
-#endif
req->fd = -1;
}
}
@@ -857,8 +853,10 @@
int fcgi_finish_request(fcgi_request *req)
{
- fcgi_flush(req, 1);
- fcgi_close(req, 0, 1);
+ if (req->fd >= 0) {
+ fcgi_flush(req, 1);
+ fcgi_close(req, 0, 1);
+ }
return 1;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php