view src/os/unix/ngx_setproctitle.h @ 62:0790a8599248 NGINX_0_1_31

nginx 0.1.31 *) Bugfix: the response encrypted by SSL may not transferred complete. *) Bugfix: errors while processing FastCGI response by SSI. *) Bugfix: errors while using SSI and gzipping. *) Bugfix: the redirect with the 301 code was transferred without response body; bug appeared in 0.1.30.
author Igor Sysoev <http://sysoev.ru>
date Mon, 16 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_ */