aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-23 11:13:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-23 11:13:12 +0000
commitc28ff717cb27e01cc40bdaebdd2c3826c0a7707d (patch)
treef0cfcf4aac2d0fb1226b4305a90916998008436b /src/os/unix/ngx_files.h
parentae2f2b105ad8e56eea73720a094961cc9e665f3d (diff)
downloadnginx-c28ff717cb27e01cc40bdaebdd2c3826c0a7707d.tar.gz
nginx-c28ff717cb27e01cc40bdaebdd2c3826c0a7707d.zip
issue start up errors and warning on both stderr and error_log
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index c4d2b7f32..63d080b5c 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -273,8 +273,12 @@ ngx_int_t ngx_directio_off(ngx_fd_t fd);
#endif
-
size_t ngx_fs_bsize(u_char *name);
+#define ngx_stderr STDERR_FILENO
+#define ngx_set_stderr(fd) dup2(fd, STDERR_FILENO)
+#define ngx_set_stderr_n "dup2(STDERR_FILENO)"
+
+
#endif /* _NGX_FILES_H_INCLUDED_ */