Mercurial > hg > nginx
annotate auto/cc/bcc @ 3440:88741ec7731a stable-0.7
merge r3294, r3305:
Fix a bug introduced in r2032: After a child process has read a terminate
message from a channel, the process tries to read the channel again.
The kernel (at least FreeBSD) may preempt the process and sends a SIGIO
signal to a master process. The master process sends a new terminate message,
the kernel switches again to the the child process, and the child process
reads the messages instead of an EAGAIN error. And this may repeat over
and over. Being that the child process can not exit the cycle and test
the termination flag set by the message handler.
The fix disallow the master process to send a new terminate message on
SIGIO signal reception. It may send the message only on SIGALARM signal.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 01 Feb 2010 15:49:36 +0000 |
parents | d43d73277c5c |
children | d620f497c50f |
rev | line source |
---|---|
455 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 # Borland C++ 5.5 | |
6 | |
7 # optimizations | |
8 | |
9 # maximize speed | |
10 CFLAGS="$CFLAGS -O2" | |
11 | |
12 case $CPU in | |
13 pentium) | |
14 # optimize for Pentium and Athlon | |
15 CPU_OPT="-5" | |
16 ;; | |
17 | |
18 pentiumpro) | |
19 # optimize for Pentium Pro, Pentium II and Pentium III | |
20 CPU_OPT="-6" | |
21 ;; | |
22 esac | |
23 | |
503 | 24 # __stdcall |
25 #CPU_OPT="$CPU_OPT -ps" | |
26 # __fastcall | |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
795
diff
changeset
|
27 #CPU_OPT="$CPU_OPT -pr" |
503 | 28 |
455 | 29 CFLAGS="$CFLAGS $CPU_OPT" |
30 | |
31 # multithreaded | |
32 CFLAGS="$CFLAGS -tWM" | |
33 | |
34 # stop on warning | |
35 CFLAGS="$CFLAGS -w!" | |
36 | |
37 # disable logo | |
38 CFLAGS="$CFLAGS -q" | |
39 | |
461 | 40 |
455 | 41 # precompiled headers |
795 | 42 CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.csm" |
43 NGX_PCH="$NGX_OBJS/ngx_config.csm" | |
44 NGX_BUILD_PCH="-H=$NGX_OBJS/ngx_config.csm" | |
45 NGX_USE_PCH="-Hu -H=$NGX_OBJS/ngx_config.csm" | |
455 | 46 |
461 | 47 |
48 # Win32 GUI mode application | |
2725 | 49 #LINK="\$(CC) -laa" |
461 | 50 |
51 | |
52 # the resource file | |
469 | 53 NGX_RES="$NGX_OBJS/nginx.res" |
54 NGX_RCC="brcc32 -fo$NGX_OBJS/nginx.res \$(CORE_INCS) $NGX_WIN32_RC" | |
461 | 55 # the pragma allows to link the resource file using bcc32 and |
56 # to avoid the direct ilink32 calling and the c0w32.obj's WinMain/main problem | |
469 | 57 NGX_PRAGMA="#pragma resource \"$NGX_OBJS/nginx.res\"" |
461 | 58 |
455 | 59 |
60 ngx_include_opt="-I" | |
61 ngx_objout="-o" | |
62 ngx_binout="-e" | |
63 ngx_objext="obj" | |
64 ngx_binext=".exe" | |
461 | 65 |
573 | 66 ngx_long_start='@&&| |
67 ' | |
68 ngx_long_end='|' | |
69 | |
461 | 70 ngx_regex_dirsep='\\' |
71 ngx_dirsep="\\" |