Forum

having problems with FCGX_SetExitStatus

kullboys
15 October 2018, 06:42
Hiawatha version: 8.8
Operating System: Windows 7 (cygwin)

I have problems to set the Exit Code of a FastCGI Script I am using inside main!.
What is wrong in this code?
FCGX_Init();
sock = FCGX_OpenSocket(socketName, 5);
for (FCGX_InitRequest(&request, sock, 0); // Init FCGX Operation
FCGX_Accept_r(&request) >= 0;
)
{
res = handle_request(&request);

FCGX_SetExitStatus(510, request.err);
FCGX_SetExitStatus(510, request.out);
FCGX_SetExitStatus(510, request.in);
FCGX_Finish_r(&request);
}

Thanks. [bsfpride.org]
Hugo Leisink
15 October 2018, 11:18
I don't know. This forum is for issues with the Hiawatha webserver. Try contacting the authors of the FCGX library.
This topic has been closed.