id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,lang,patch,platform
1882,gethostbyname failure doesn't throw an exception,dukeleto,whiteknight,"Currently in src/io/socket_unix.c there is the following code:

{{{
        /* Maybe it is a hostname, try to lookup */
        /* XXX Check PIO option before doing a name lookup,
         * it may have been toggled off.
         */
        struct hostent *he = gethostbyname(host);
        /* XXX FIXME - Handle error condition better */
        if (!he) {
            fprintf(stderr, ""gethostbyname failure [%s]\n"", host);
            return;
        }
}}}

What kind of exception should be thrown here?

",RFC,closed,normal,2.11,docs,2.10.0,medium,fixed,,,,,unix
