Mercurial > hg > nginx-vendor-current
annotate src/os/unix/rfork_thread.S @ 30:e1ada20fc595 NGINX_0_1_15
nginx 0.1.15
*) Bugfix: the error while the connecting to the FastCGI server caused
segmentation fault.
*) Bugfix: the correct handling of the regular expression, that has
different number of the captures and substitutions.
*) Feature: the location, that is passed to the FastCGI server, can be
regular expression.
*) Bugfix: the FastCGI's parameter REQUEST_URI is now passed with the
arguments and in the original state.
*) Bugfix: the ngx_http_rewrite_module module was required to be built
to use the regular expressions in locations.
*) Bugfix: the directive "proxy_preserve_host on" adds port 80 to the
"Host" headers, if upstream listen on port 80; bug appeared in
0.1.14.
*) Bugfix: the same paths in autoconfiguration parameters
--http-client-body-temp-path=PATH and --http-proxy-temp-path=PATH,
or --http-client-body-temp-path=PATH and
--http-fastcgi-temp-path=PATH caused segmentation fault.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 19 Jan 2005 00:00:00 +0300 |
parents | f0b350454894 |
children | da8c190bdaba |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 | |
8 #include <sys/syscall.h> | |
9 #include <machine/asm.h> | |
10 | |
11 /* | |
12 * rfork_thread(3) - rfork_thread(flags, stack, func, arg); | |
13 */ | |
14 | |
15 #define KERNCALL int $0x80 | |
16 | |
17 ENTRY(rfork_thread) | |
18 push %ebp | |
19 mov %esp, %ebp | |
20 push %esi | |
21 | |
22 mov 12(%ebp), %esi # the stack address | |
23 | |
24 sub $4, %esi | |
25 mov 20(%ebp), %eax # the thread argument | |
26 mov %eax, (%esi) | |
27 | |
28 sub $4, %esi | |
29 mov 16(%ebp), %eax # the start thread address | |
30 mov %eax, (%esi) | |
31 | |
32 push 8(%ebp) # rfork(2) flags | |
33 push $0 | |
34 mov $SYS_rfork, %eax | |
35 KERNCALL | |
36 jc error | |
37 | |
38 cmp $0, %edx | |
39 jne child | |
40 | |
41 parent: | |
42 add $8, %esp | |
43 pop %esi | |
44 mov %ebp, %esp | |
45 pop %ebp | |
46 ret | |
47 | |
48 child: | |
49 mov %esi, %esp | |
50 pop %eax | |
51 call *%eax # call a thread start address ... | |
52 add $4, %esp | |
53 | |
54 push %eax | |
55 push $0 | |
56 mov $SYS_exit, %eax # ... and exit(2) after a thread would return | |
57 KERNCALL | |
58 | |
59 error: | |
60 add $8, %esp | |
61 pop %esi | |
62 mov %ebp, %esp | |
63 pop %ebp | |
64 PIC_PROLOGUE | |
65 | |
66 /* libc's cerror: jmp PIC_PLT(HIDENAME(cerror)) */ | |
67 | |
68 push %eax | |
69 call PIC_PLT(CNAME(__error)) | |
70 pop %ecx | |
71 PIC_EPILOGUE | |
72 mov %ecx, (%eax) | |
73 mov $-1, %eax | |
74 mov $-1, %edx | |
75 ret |