httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject [PATCH] don't try to clean up listening sockets twice prior to exec
Date Sun, 30 Mar 2003 17:07:10 GMT
I'm not seeing any "close(-1)" calls on a trace of a mod_cgid-invoked 
script anymore now.

old trace (in the new script child prior to exec):

5108:   close(4)                                        = 0
5108:   close(3)                                        = 0
5108:   close(-1)                                       Err#9 EBADF
5108:   close(-1)                                       Err#9 EBADF
5108:   close(9)                                        = 0
5108:   close(6)                                        = 0
5108:   close(8)                                        = 0
5108:   close(7)                                        = 0
5108:   close(13)                                       = 0
5108:   fcntl(12, F_DUP2FD, 0x00000000)                 = 0
5108:   close(12)                                       = 0
5108:   close(14)                                       = 0
5108:   fcntl(15, F_DUP2FD, 0x00000001)                 = 1
5108:   close(15)                                       = 0
5108:   close(16)                                       = 0
5108:   fcntl(17, F_DUP2FD, 0x00000002)                 = 2
5108:   close(17)                                       = 0
5108:   sigaction(SIGCLD, 0xFFBEF5C8, 0xFFBEF6D0)       = 0
5108:   chdir("/export/home/trawick/apacheinst/cgi-bin/") = 0

new trace:

6616:   close(4)                                        = 0
6616:   close(3)                                        = 0
6616:   close(9)                                        = 0
6616:   close(6)                                        = 0
6616:   close(8)                                        = 0
6616:   close(7)                                        = 0
6616:   close(13)                                       = 0
6616:   fcntl(12, F_DUP2FD, 0x00000000)                 = 0
6616:   close(12)                                       = 0
6616:   close(14)                                       = 0
6616:   fcntl(15, F_DUP2FD, 0x00000001)                 = 1
6616:   close(15)                                       = 0
6616:   close(16)                                       = 0
6616:   fcntl(17, F_DUP2FD, 0x00000002)                 = 2
6616:   close(17)                                       = 0
6616:   sigaction(SIGCLD, 0xFFBEF5C8, 0xFFBEF6D0)       = 0
6616:   chdir("/export/home/trawick/apacheinst/cgi-bin/") = 0

I'd been seeing these bogus closes for eons, but thought they were 
associated with pipes until I stepped through the cleanup-for-exec path 
early this a.m..


Mime
View raw message