aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-29 17:43:58 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-29 17:43:58 +0000
commit11dbe97ca401221313dc233aa2d6f67dfcaef1a7 (patch)
treefcd53429592c68f6fdf8d3ad4b0c151b9ebd5ff3 /src/os/unix
parent14f02ed0dde2ee19da75cd836daf76505d7f2e9c (diff)
downloadnginx-11dbe97ca401221313dc233aa2d6f67dfcaef1a7.tar.gz
nginx-11dbe97ca401221313dc233aa2d6f67dfcaef1a7.zip
nginx-0.0.3-2004-03-29-21:43:58 import
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_freebsd_init.c7
-rw-r--r--src/os/unix/ngx_freebsd_sendfile_chain.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/src/os/unix/ngx_freebsd_init.c b/src/os/unix/ngx_freebsd_init.c
index 0f02fba8b..eb66cf067 100644
--- a/src/os/unix/ngx_freebsd_init.c
+++ b/src/os/unix/ngx_freebsd_init.c
@@ -106,9 +106,16 @@ int ngx_os_init(ngx_log_t *log)
version = ngx_freebsd_kern_osreldate;
+#ifdef __DragonFly_version
+ ngx_log_error(NGX_LOG_INFO, log, 0,
+ "kern.osreldate: %d, built on %d",
+ version, __DragonFly_version);
+#else
ngx_log_error(NGX_LOG_INFO, log, 0,
"kern.osreldate: %d, built on %d",
version, __FreeBSD_version);
+#endif
+
#if (HAVE_SENDFILE)
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c
index fb2898d6f..b8872dfc3 100644
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -234,6 +234,9 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in)
} else {
rc = writev(c->fd, header.elts, header.nelts);
+ ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
+ "writev: %d of " SIZE_T_FMT, rc, hsize);
+
if (rc == -1) {
err = ngx_errno;
@@ -253,9 +256,6 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in)
}
sent = rc > 0 ? rc : 0;
-
- ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
- "writev: " OFF_T_FMT, sent);
}
c->sent += sent;