tjfs@AI.MIT.EDU (Tim Steele) (01/21/91)
A strange thing... On our Unix system (TP-IX/68K 1.23 which is based on AT&T V.3.2) the function open-network-stream hangs in the function gethostbyname(). sdb indicates that the hang is occurring in res_send.c (internal to gethostbyname) after it has done a select() which indicates there is a packet of data returned by named; it then does a recv() which hangs. Further investigation shows that killing the name daemon named makes it work OK. A vanilla gethostbyname("valid-host") inserted just before the proper gethostbyname() also hangs, so there's nothing wrong with the argument. A dummy program which just does a gethostbyname("same-host") works OK, as do all the network utilities which are built with the same library. Hitting ^G during the hang causes gethostbyname() to return *with the right answer*, but then Emacs aborts the function (of course). Any ideas? Thanks! Tim