Mercurial > hg > nginx-vendor-1-0
annotate src/os/unix/rfork_thread.S @ 644:ad25218fd14b NGINX_1_0_12
nginx 1.0.12
*) Feature: the "TLSv1.1" and "TLSv1.2" parameters of the
"ssl_protocols" directive.
*) Feature: the "if" SSI command supports captures in regular
expressions.
*) Bugfix: the "if" SSI command did not work inside the "block" command.
*) Bugfix: in AIO error handling on FreeBSD.
*) Bugfix: in the OpenSSL library initialization.
*) Bugfix: the "worker_cpu_affinity" directive might not work.
*) Bugfix: the "limit_conn_log_level" and "limit_req_log_level"
directives might not work.
*) Bugfix: the "read_ahead" directive might not work combined with
"try_files" and "open_file_cache".
*) Bugfix: the "proxy_cache_use_stale" directive with "error" parameter
did not return answer from cache if there were no live upstreams.
*) Bugfix: a segmentation fault might occur in a worker process if small
time was used in the "inactive" parameter of the "proxy_cache_path"
directive.
*) Bugfix: responses from cache might hang.
*) Bugfix: in error handling while connecting to a backend.
Thanks to Piotr Sikora.
*) Bugfix: in the "epoll" event method.
Thanks to Yichun Zhang.
*) Bugfix: the $sent_http_cache_control variable might contain a wrong
value if the "expires" directive was used.
Thanks to Yichun Zhang.
*) Bugfix: the "limit_rate" directive did not allow to use full
throughput, even if limit value was very high.
*) Bugfix: the "sendfile_max_chunk" directive did not work, if the
"limit_rate" directive was used.
*) Bugfix: nginx could not be built on Solaris; the bug had appeared in
1.0.11.
*) Bugfix: in the ngx_http_scgi_module.
*) Bugfix: in the ngx_http_mp4_module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 06 Feb 2012 00:00:00 +0400 |
parents | da8c190bdaba |
children |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
644 | 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 |