By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,691 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,691 IT Pros & Developers. It's quick & easy.

[SOLVED] Socket command type E unknown

P: n/a
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>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQA/U02WNXYAc2rSkzURAquUAJ9g1wsHKA14NX8T8LnH922yIizNzw CgryZR
TSSmXWqDuf/7oeYxhro2Co4=
=peMX
-----END PGP SIGNATURE-----

Nov 11 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.