fastcgi C++ dev. kit - few questions
"Ravi Menon" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am fairly new to Fast CGI and I am able to write some test
applications with C++ using echo-cpp.cpp as the guideline with apache
1.3.33 under Linux.
I could not search the archives, so I apologise if these issues were
discussed already:
1) When I use cin.read(bug, sz) or cout.write(buf, sz) methods to
read POST input, or send
any output, should the developer handle EINTR errors? Glancing at
the sources,
it seems EINTR errors are not handled?
i.e
// fill up my buf with output
cout.write(buf, sz);
if (cout.bad())
{
// whoops handle errno == EINTR to
// retry the write() above???
}
Currently I don't handle EINTR
2) Is it possible to install a custom signal handler, say SIGUSR2, and send
it to the mgr process which can dispatch it to all child fcgi processes? Any
examples on how to do it?
I could install a handler per child before entering the main
FCGX_Accept_r() loop
but that would mean sending this signal to each child (the pids
being recorded
elsewhere...).
My aim here to force all fastcgi processes to re-read a custom config. file
without restarting apache.
Thanks,
Ravi
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/