On Saturday October 22 2005 01:08, Lou wrote:
> > I'm using 0 because that's what m_socket is initialized to in the
> > constructor. Should work, too, because you need an fd > 3 anyway, don't
> > you?
>
> It is possible for a program to close stdin before connecting through
> gloox. They wouldn't even have to close stdout or stdin.
> Not terribly common in practise, but possible. In that case, the socket
> would probably be descriptor 0. I think the proper operation of the dup2
> call relies on that. If nothing else, you'd want to put a "don't do that"
> notice in the docs.
Didn't know that's possible. Of course I'm fine with -1 if that makes the
whole thing less error-prone.
cheers,
Jakob
Attachment:
pgpFdgxSXA7UR.pgp
Description: PGP signature
--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx