Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!eichelbe@nadc.arpa From: eichelbe@nadc.arpa (J. Eichelberger) Newsgroups: comp.unix.wizards Subject: /etc/comsat problems Message-ID: <8022@brl-adm.ARPA> Date: Thu, 25-Jun-87 17:15:13 EDT Article-I.D.: brl-adm.8022 Posted: Thu Jun 25 17:15:13 1987 Date-Received: Sat, 27-Jun-87 03:33:10 EDT Sender: news@brl-adm.ARPA Lines: 27 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