eichelbe@nadc.arpa (J. Eichelberger) (06/26/87)
We are running 4.3 BSD UNIX on a VAX 11/780. I tried to start up /etc/comsat while logged in as superuser. I got the message: /etc/comsat: getsockname: Socket operation on non-socket In the code for comsat.c the first call to any routine having anything to do with sockets is: if (getsockname(0, &from, &fromlen) < 0) { perror("getsockname"); etc. etc. This is the call from which we get the error message. /etc/comsat was not running when I tried to invoke it, as far as I can tell from "ps ax". So here are my questions: (1) Is there some code missing? Like a call to socket() and a call to bind()? (2) If not (1), then what is wrong? Should /etc/comsat only be started in /etc/rc or /etc/rc.local? What's wrong? Please send mail if you think you have an answer. Thank you. Jon eichelbe@NADC.ARPA
eichelbe@nadc.arpa (J. Eichelberger) (06/26/87)
(4.3 BSD UNIX on a VAX 11/780) OK. I goofed. /etc/comsat is supposed to be run by /etc/inetd. But why when I have "biff y" set am I not getting notified of new mail when I get it. When I do a "lastcomm", /etc/comsat has never been run. I have entries for comsat in both /etc/services and /etc/inetd.conf. What could be wrong? Thanks. Jon eichelbe@NADC.ARPA
michael@pbinfo.UUCP (Michael Schmidt) (06/29/87)
Recently eichelbe@nadc.arpa (J. Eichelberger) wrote: I have entries for comsat in both /etc/services and /etc/inetd.conf. What could be wrong? Make sure, that you should have an entry for "localhost" in /etc/hosts. Strange, isn't it? Michael Schmidt -- UUCP: ...!seismo!unido!pbinfo!michael | Michael Schmidt or michael@pbinfo.UUCP | Universitaet-GH Paderborn, FB 17 CSNET: michael%pbinfo.uucp@Germany.CSNET | Warburger Str. 100 ARPA: michael%pbinfo.uucp@seismo.css.gov | D-4790 Paderborn, West Germany