Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!itcatl!robin From: robin@itcatl.UUCP (Robin Cutshaw) Newsgroups: comp.unix.aix Subject: Re: inetd weirdness Summary: SOLVED! Keywords: inetd Message-ID: <396@itcatl.UUCP> Date: 24 Oct 89 00:53:11 GMT References: <395@itcatl.UUCP> Organization: DISC ACCESS Products Group Lines: 31 In article <395@itcatl.UUCP>, robin@itcatl.UUCP (Robin Cutshaw) (I) write(s): > I'm having a weird problem with inetd on AIX 1.1 for the PS/2. I can > make tcp connections out to anyone on my backbone with no problems. I > can also receive incoming calls such as ping and X-windows stuff with > no problems. However, when connections go through inetd they connect > with no problems but then hang. This effects everything in inetd.conf > including telnet, rlogin, etc. > After tinkering around a bit, I've found the problem! It seems that if your last line in /etc/inetd.conf includes a command that has multiple arguments, inetd will go into an infinite loop reading EOF. I had uncommented the last line in inetd.conf that included rpc and that's when it broke. All I had to do was enter a # on the next line and it worked fine. The fix: (after tinkering on a source machine) there is a call to ungetc (only one) in inetd.c. place the line "if (c != (char )EOF)" before this line and it will work just fine. Sloppy problem of ungetc'ing EOF. IBM, are you listening??? robin -- ---------- Robin Cutshaw {gatech,rebel}!itcatl!robin Disc Access, Atlanta, Ga. (404)261-1264 (formerly ITC)