Обсуждение: [SOLVED] Socket command type E unknown

Поиск
Список
Период
Сортировка

[SOLVED] Socket command type E unknown

От
Stefanos Harhalakis
Дата:
Hi there...

I've seen in the mailing list archives that some people get this error
message:

FATAL: Socket command type E unknown

I didn't find any solution so I'm sending this message...

I had the same problem and after some debuging I've found that:

If you have a program that closes all fds (including stdin, stdout, stderr)
and after that you make a connectioon to the database that gets fd #1 (simply
open a file first and the connect to the database) and you have something
like:

printf("Exec: test");
<<send an sql command>>
fflush(stdout);

you'll get this error message... It seems that printf writes to stdout which
is fd #1 which is the socket that connects the program to the database.

I believe that you don't need any more details...

<<V13>>

Вложения