Mercurial > hg > nginx-vendor-0-7
annotate src/os/unix/rfork_thread.S @ 22:8b6db3bda591 NGINX_0_1_11
nginx 0.1.11
*) Feature: the worker_priority directive.
*) Change: both tcp_nopush and tcp_nodelay directives affect the
transferred response.
*) Bugfix: nginx did not call initgroups().
Thanks to Andrew Sitnikov and Andrei Nigmatulin.
*) Change: now the ngx_http_autoindex_module shows the file size in the
bytes.
*) Bugfix: the ngx_http_autoindex_module returned the 500 error if the
broken symlink was in a directory.
*) Bugfix: the files bigger than 4G could not be transferred using
sendfile.
*) Bugfix: if the backend was resolved to several backends and there
was an error while the response waiting then process may got caught
in an endless loop.
*) Bugfix: the worker process may exit with the "unknown cycle" message
when the /dev/poll method was used.
*) Bugfix: "close() channel failed" errors.
*) Bugfix: the autodetection of the "nobody" and "nogroup" groups.
*) Bugfix: the send_lowat directive did not work on Linux.
*) Bugfix: the segmentation fault occurred if there was no events
section in configuration.
*) Bugfix: nginx could not be built on OpenBSD.
*) Bugfix: the double slashes in "://" in the URI were converted to
":/".
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 02 Dec 2004 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 |