Avoid writing to error_log in case of aborted connections.

This commit is contained in:
Zeev Suraski 2001-03-06 15:00:08 +00:00
parent 7c2ea02288
commit 559c254f8f

View File

@ -124,10 +124,8 @@ static int sapi_apache_ub_write(const char *str, uint str_length)
if (SG(server_context)) {
ret = rwrite(str, str_length, (request_rec *) SG(server_context));
} else {
ret = fwrite(str, 1, str_length, stderr);
}
if(ret != str_length) {
if (ret != str_length) {
php_handle_aborted_connection();
}
return ret;