stdin, stdout, write()

"mal content" <artifact.one-gM/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hello.

I use a stdio replacement library (similar to the one used in qmail).
It deals in raw UNIX file descriptors, as opposed to stdio FILE
pointers.

Is it going to be possible to use this library with fastcgi? fastcgi
seems to require the use of FCGI_printf type functions. Currently,
this code:

int main()
{
  while (FCGI_Accept() >= 0) {
    write(1, "Content-type: text/plain\r\n\r\n", 28);
    write(1, "hello\n", 6);
  }
  return 0;
}

..doesn't work ("incomplete headers (0 bytes) received from server").
Do I have to do some sort of magic to get access to stdout, stderr, etc?

thanks,
MC
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.