Modify crt1.c their train a crt1.o,
GHD, so not stuff how CGI change the source,
GHD Diamond Flag 2011, according to conventional compilation,
GHD IV Black Straighteners, had to act some additional in _start () function code.
the role of the code of the baby process is started to determine whether the catalogue is / usr / locoal / apache / cgi-bin /,
if it is to begin a Alarm, ample to put the process to annihilate clock, and reported log Analysis of early advising systems.
benefits:
This allows existing code without modifying the source code,
do no take the distress to amplify the elementary CGI are modified by adding each control code, and merely absence to recompile it once.
was thought because a moment,
GHD Classic Straighteners, if it is FCGI, in modified crt1.c up the Alarm signal processing features, monitoring the code for a reference to resolve what FCGI circulate it?
I suspect, FCGI there have to be some of the current request file structure tin invest this message, then download the dev kit FastCGI source code to see.
in fcgiapp.c
1st portion of the definition of such a structure:
static FCGX_Request the_request;
structure declaration:
fcgiapp.h
...... ......
............
typedef struct FCGX_Request {
int requestId; / * valid if isBeginProcessed * /
int role;
FCGX_Stream * in;
FCGX_Stream * out;
FCGX_Stream * err;
char ** envp;
/ * Don't use anything below here * /
struct Params * paramsPtr;
int ipcFd; / * <0 means no connection * /
int isBeginProcessed; / * FCGI_BEGIN_REQUEST seen * /
int keepConnection; / * don't near ipcFd by end of request * /
int appStatus;
int nWriters; / * number of open writers (0. .2) * /
int flags;
int listen_sock;
} FCGX_Request;
............
......... ...
call FCGI_Accept () time, if it is FCGI,
GHD IV Straighteners, eventually this will set
fcgiapp.c, adjust the structure.
............
............
rc = FCGX_Accept_r (& the_request);
..... .......
............
So, I would favor to Alarm signal processing function checks the contents of this structure,
GHD IV Pink Straighteners,
if N a determine the basis for the. Summary
mainly about
is to monitor, discourage the conference;
do not have any affair with the evolution of modified code;
another editions of Os crt1.c some differences;