Mercurial > hg > nginx
annotate auto/cc/owc @ 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 | cb7739c822c6 |
children | d620f497c50f |
rev | line source |
---|---|
455 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
583 | 5 # Open Watcom C 1.0, 1.2, 1.3 |
455 | 6 |
7 # optimizations | |
8 | |
9 # maximize speed | |
10 CFLAGS="$CFLAGS -ot" | |
577 | 11 # reorder instructions for best pipeline usage |
455 | 12 CFLAGS="$CFLAGS -op" |
13 # inline intrinsic functions | |
14 CFLAGS="$CFLAGS -oi" | |
15 # inline expansion | |
16 CFLAGS="$CFLAGS -oe" | |
17 # disable stack checking calls | |
18 CFLAGS="$CFLAGS -s" | |
19 | |
20 case $CPU in | |
21 pentium) | |
22 # optimize for Pentium and Athlon | |
23 # register-based arguments passing conventions | |
24 CPU_OPT="-5r" | |
25 # stack-based arguments passing conventions | |
26 #CPU_OPT="-5s" | |
577 | 27 ;; |
455 | 28 |
29 pentiumpro) | |
30 # optimize for Pentium Pro, Pentium II and Pentium III | |
31 # register-based arguments passing conventions | |
32 CPU_OPT="-6r" | |
33 # stack-based arguments passing conventions | |
34 #CPU_OPT="-6s" | |
35 ;; | |
36 esac | |
37 | |
38 CFLAGS="$CFLAGS $CPU_OPT" | |
39 | |
40 | |
41 # warnings | |
42 | |
499 | 43 # maximum level |
44 CFLAGS="$CFLAGS -wx" | |
455 | 45 #CFLAGS="$CFLAGS -w3" |
46 | |
47 # stop on warning | |
48 CFLAGS="$CFLAGS -we" | |
49 | |
50 # built target is NT | |
51 CFLAGS="$CFLAGS -bt=nt" | |
52 | |
53 # multithreaded | |
54 CFLAGS="$CFLAGS -bm" | |
55 | |
56 # debug | |
57 CFLAGS="$CFLAGS -d2" | |
58 | |
59 # quiet | |
60 CFLAGS="$CFLAGS -zq" | |
61 | |
62 # Open Watcom C 1.2 | |
583 | 63 have=NGX_HAVE_C99_VARIADIC_MACROS . auto/have |
455 | 64 |
461 | 65 |
577 | 66 # the precompiled headers |
469 | 67 CORE_DEPS="$CORE_DEPS $NGX_OBJS/ngx_config.pch" |
68 NGX_PCH="$NGX_OBJS/ngx_config.pch" | |
69 NGX_BUILD_PCH="-fhq=$NGX_OBJS/ngx_config.pch" | |
70 NGX_USE_PCH="-fh=$NGX_OBJS/ngx_config.pch" | |
455 | 71 |
461 | 72 |
73 # the link flags, built target is NT GUI mode application | |
2725 | 74 #CORE_LINK="$CORE_LINK -l=nt_win" |
461 | 75 |
76 | |
77 # the resource file | |
469 | 78 NGX_RCC="wrc \$(CORE_INCS) -fo=$NGX_OBJS/nginx.res " |
79 NGX_RCC="$NGX_RCC $NGX_WIN32_RC $NGX_OBJS/nginx.exe" | |
461 | 80 |
455 | 81 |
82 ngx_include_opt="-i=" | |
83 ngx_objout="-fo" | |
84 ngx_binout="-fe=" | |
85 ngx_objext="obj" | |
86 ngx_binext=".exe" | |
87 | |
88 ngx_regex_dirsep='\\' | |
89 ngx_dirsep="\\" | |
2825
bb05c0834c8c
remove BMAKE (build make): a cc compiler should use own make
Igor Sysoev <igor@sysoev.ru>
parents:
2725
diff
changeset
|
90 |
2839
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
91 ngx_long_start=' ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
92 ngx_long_end=' ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
93 ngx_long_regex_cont=' \&\ |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
94 ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
95 ngx_long_cont=' & |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
96 ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
97 |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
98 ngx_regex_cont=' \&\ |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
99 ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
100 ngx_cont=' & |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
101 ' |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
102 ngx_tab=' & |
cb7739c822c6
add miltilines in OpenWatcom makefiles
Igor Sysoev <igor@sysoev.ru>
parents:
2825
diff
changeset
|
103 ' |