Mercurial > hg > nginx-vendor-current
annotate src/os/unix/rfork_thread.S @ 662:e5fa0a4a7d27 NGINX_1_1_15
nginx 1.1.15
*) Feature: the "disable_symlinks" directive.
*) Feature: the "proxy_cookie_domain" and "proxy_cookie_path"
directives.
*) Bugfix: nginx might log incorrect error "upstream prematurely closed
connection" instead of correct "upstream sent too big header" one.
Thanks to Feibo Li.
*) Bugfix: nginx could not be built with the ngx_http_perl_module if the
--with-openssl option was used.
*) Bugfix: internal redirects to named locations were not limited.
*) Bugfix: calling $r->flush() multiple times might cause errors in the
ngx_http_gzip_filter_module.
*) Bugfix: temporary files might be not removed if the "proxy_store"
directive were used with SSI includes.
*) Bugfix: in some cases non-cacheable variables (such as the $args
variable) returned old empty cached value.
*) Bugfix: a segmentation fault might occur in a worker process if too
many SSI subrequests were issued simultaneously; the bug had appeared
in 0.7.25.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 15 Feb 2012 00:00:00 +0400 |
parents | d0f7a625f27c |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
660 | 4 * Copyright (C) Nginx, Inc. |
0 | 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 | |
32 | 22 mov 12(%ebp), %esi # the thread stack address |
0 | 23 |
24 sub $4, %esi | |
25 mov 20(%ebp), %eax # the thread argument | |
26 mov %eax, (%esi) | |
27 | |
28 sub $4, %esi | |
32 | 29 mov 16(%ebp), %eax # the thread start address |
0 | 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 | |
32 | 44 leave |
0 | 45 ret |
46 | |
47 child: | |
48 mov %esi, %esp | |
49 pop %eax | |
50 call *%eax # call a thread start address ... | |
51 add $4, %esp | |
52 | |
53 push %eax | |
54 push $0 | |
55 mov $SYS_exit, %eax # ... and exit(2) after a thread would return | |
56 KERNCALL | |
57 | |
58 error: | |
59 add $8, %esp | |
60 pop %esi | |
32 | 61 leave |
0 | 62 PIC_PROLOGUE |
63 | |
64 /* libc's cerror: jmp PIC_PLT(HIDENAME(cerror)) */ | |
65 | |
66 push %eax | |
67 call PIC_PLT(CNAME(__error)) | |
68 pop %ecx | |
69 PIC_EPILOGUE | |
70 mov %ecx, (%eax) | |
71 mov $-1, %eax | |
72 mov $-1, %edx | |
73 ret |