summaryrefslogtreecommitdiffhomepage
path: root/src/core/nginx.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2015-03-04Renamed NGX_THREADS to NGX_OLD_THREADS because of deprecation.Ruslan Ermilov1-3/+3
It's mostly dead code and the original idea of worker threads has been rejected.
2014-05-20Configure: the --build= option.Ruslan Ermilov1-1/+1
If set, its value is output in "nginx -v" and in the error log.
2013-08-20Backed out f1a91825730a and 7094bd12c1ff.Maxim Dounin1-7/+3
While ngx_get_full_name() might have a bit more descriptive arguments, the ngx_conf_full_name() is generally easier to use when parsing configuration and limits exposure of cycle->prefix / cycle->conf_prefix details.
2013-08-06Replaced ngx_conf_full_name() with ngx_get_full_name().Valentin Bartenev1-3/+7
The ngx_get_full_name() function takes more readable arguments list.
2013-06-28Core: consolidated log-related code.Vladimir Homutov1-7/+2
The stderr redirection code is moved to ngx_log_redirect_stderr(). The opening of the default log code is moved to ngx_log_open_default().
2013-06-04Core: fixed handling of "stderr" in error_log.Vladimir Homutov1-1/+1
If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
2013-03-25Use NGX_FILE_ERROR for handling file operations errors.Valentin Bartenev1-2/+4
On Win32 platforms 0 is used to indicate errors in file operations, so comparing against -1 is not portable. This was not much of an issue in patched code, since only ngx_fd_info() test is actually reachable on Win32 and in worst case it might result in bogus error log entry. Patch by Piotr Sikora.
2013-03-20Core: fixed resource leak if binary upgrade fails due to no memory.Ruslan Ermilov1-0/+1
Found by Coverity (CID 992320).
2013-03-18Core: guard against failed allocation during binary upgrade.Ruslan Ermilov1-0/+3
Patch by Piotr Sikora.
2012-10-23Core: the "auto" parameter of the "worker_processes" directive.Andrey Belov1-2/+33
The parameter will set the number of worker processes to the autodetected number of available CPU cores.
2012-08-03Fixed the -p parameter handling.Ruslan Ermilov1-1/+1
Ensure that the path supplied always ends with a `/' except when empty. An empty value now corresponds to the current directory instead of `/'.
2012-04-12Fixed grammar in error messages.Ruslan Ermilov1-1/+1
2012-03-21worker_cpu_affinity: cleaned up Linux implementation, added FreeBSD support.Ruslan Ermilov1-9/+9
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-11-15Fixed handling of SIGWINCH/NOACCEPT signal.Maxim Dounin1-0/+4
After first upgrade it was ignored since r4020 (1.1.1, 1.0.9) as ngx_daemonized wasn't set.
2011-11-14Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()Igor Sysoev1-18/+20
for output of ./configure options, etc., since ngx_log_stderr() output length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.
2011-10-24malloc() debugging on MacOSX.Igor Sysoev1-2/+0
2011-10-24FreeBSD's MALLOC_OPTIONS must be set before any malloc() call.Igor Sysoev1-4/+4
The bug has been introduced in r3799.
2010-11-29move ngx_strerror_init() at the very startIgor Sysoev1-4/+4
2010-11-25use copied strerror() messages and autoconfigured sys_nerr valueIgor Sysoev1-0/+4
2010-09-15worker_rlimit_core should be off_tIgor Sysoev1-2/+2
2010-09-02the -q switchIgor Sysoev1-3/+12
2010-05-14ngx_str_set() and ngx_str_null()Igor Sysoev1-12/+6
2010-03-26fix commentsIgor Sysoev1-1/+1
2009-12-17fix r3331:Igor Sysoev1-3/+0
*) now pools are aligned to 16 bytes *) forbidden to set non-aligned pool sizes
2009-10-26fix r3211Igor Sysoev1-0/+4
2009-10-19add SNI support in -V outputIgor Sysoev1-0/+3
2009-10-09nginx did not close log file set by --error-log-path,Igor Sysoev1-0/+7
the bug was introduced in r2744
2009-09-30Linux/SPARC malloc() returns an address aligned to 8. This conflicts withIgor Sysoev1-0/+3
our SPARC 16-byte alignment and some allocations may be done out of pool. ngx_memalign(ngx_pagesize) fixes this issue.
2009-06-06a signaller process should stop configuration processing just afterIgor Sysoev1-4/+4
it is able to get pid file, this allows to not open log files, etc.
2009-04-28add prefix in UsageIgor Sysoev1-1/+1
2009-04-27-p and --prefix=Igor Sysoev1-4/+104
2009-04-26add quotes for configure options with spacesIgor Sysoev1-1/+1
2009-04-23pass command lines options to workersIgor Sysoev1-0/+2
2009-04-23issue start up errors and warning on both stderr and error_logIgor Sysoev1-12/+23
2009-04-21implement "-s signal" option for UnixIgor Sysoev1-15/+5
2009-04-21add -? and -h optionsIgor Sysoev1-0/+30
2009-04-21allow condensed command lines optionsIgor Sysoev1-49/+75
2009-04-21test command line options before ngx_log_init() and issue errors to stderrIgor Sysoev1-54/+66
2009-04-20Win32 master/workers modelIgor Sysoev1-39/+61
2009-04-19show -t results on stderrIgor Sysoev1-26/+7
2009-02-24small optimization: " == NGX_ERROR" > " != NGX_OK"Igor Sysoev1-3/+3
2008-11-11compatibility with glibc 2.3, warn_unused_result attribute for write()Igor Sysoev1-11/+20
2008-09-05remove unused #include'sIgor Sysoev1-1/+0
2008-06-30-g switchIgor Sysoev1-2/+12
2008-06-17*) back out r2040Igor Sysoev1-2/+2
*) refactor ngx_palloc() *) introduce ngx_pnalloc() *) additional pool blocks have smaller header
2008-05-22style fixIgor Sysoev1-1/+1
2007-12-10move condition declarations inside blocks where they are usedIgor Sysoev1-6/+6
2007-12-07rename ngx_crc32_init() to ngx_crc32_table_init()Igor Sysoev1-2/+4
ngx_crc32_init(), ngx_crc32_update(), ngx_crc32_final()
2007-08-20test relative nginx.conf, this is compatible with old versionsIgor Sysoev1-4/+0
because cycle->root on this stage is not set