in reply to Re^3: Socket deadlock doubt in code
in thread Socket deadlock doubt in code
gethostbyname relies on a functioning DNS system. Make sure things like nslookup and traceroute work properly. The other place you might be going wrong is that in a scalar context, gethostbyname returns the packed ip address, though I'm not sure why you're looking up the hostname from a hostname to begin with.
As for the printing issue, I suspect that you are Suffering from Buffering.
Update: oops, gethostbyname is irrelevant here but the DNS still needs to work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Socket deadlock doubt in code
by sajanagr (Acolyte) on Jun 24, 2010 at 05:27 UTC | |
by rowdog (Curate) on Jun 24, 2010 at 17:41 UTC |