view src/os/unix/ngx_setproctitle.h @ 60:df7d3fff122b NGINX_0_1_30

nginx 0.1.30 *) Bugfix: the worker process may got caught in an endless loop if the SSI was used. *) Bugfix: the response encrypted by SSL may not transferred complete. *) Bugfix: if the length of the response part received at once from proxied or FastCGI server was equal to 500, then nginx returns the 500 response code; in proxy mode the bug appeared in 0.1.29 only. *) Bugfix: nginx did not consider the directives with 8 or 9 parameters as invalid. *) Feature: the "return" directive can return the 204 response code. *) Feature: the "ignore_invalid_headers" directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 14 May 2005 00:00:00 +0400
parents b55cbf18157e
children 5db440287648
line wrap: on
line source


/*
 * Copyright (C) Igor Sysoev
 */


#ifndef _NGX_SETPROCTITLE_H_INCLUDED_
#define _NGX_SETPROCTITLE_H_INCLUDED_


#if (NGX_HAVE_SETPROCTITLE)

/* FreeBSD, NetBSD, OpenBSD */

#define ngx_init_setproctitle(log)
#define ngx_setproctitle           setproctitle


#elif !defined NGX_SETPROCTITLE_USES_ENV

#define NGX_SETPROCTITLE_USES_ENV  1

#if (NGX_SOLARIS)

#define NGX_SETPROCTITLE_PAD       ' '

#elif (NGX_LINUX) || (NGX_DARWIN)

#define NGX_SETPROCTITLE_PAD       '\0'

#endif

ngx_int_t ngx_init_setproctitle(ngx_log_t *log);
void ngx_setproctitle(char *title);


#else /* !NGX_SETPROCTITLE_USES_ENV */

#define ngx_init_setproctitle(log)
#define ngx_setproctitle(title)

#endif


#endif /* _NGX_SETPROCTITLE_H_INCLUDED_ */