From owner-freebsd-questions Sat Sep 12 13:34:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA08477 for freebsd-questions-outgoing; Sat, 12 Sep 1998 13:34:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA08437 for ; Sat, 12 Sep 1998 13:34:01 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id NAA20104; Sat, 12 Sep 1998 13:33:39 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Sat, 12 Sep 1998 13:33:38 -0700 (PDT) From: Doug White To: "Ron G. Minnich" cc: questions@FreeBSD.ORG Subject: Re: a problem with mount_portal, which I hope is obvious to someone In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 11 Sep 1998, Ron G. Minnich wrote: > FreeBSD 3.0-980627-SNAP (CLUSTER) #4: Wed Sep 9 06:05:32 EDT 1998 > > Code is: > > > /* > * If there is a file descriptor to send then > * construct a suitable rights control message. > */ > if (fd >= 0) { > ctl.fd = fd; > ctl.cmsg.cmsg_len = sizeof(ctl); > ctl.cmsg.cmsg_level = SOL_SOCKET; > ctl.cmsg.cmsg_type = SCM_RIGHTS; > msg.msg_control = (caddr_t) &ctl; > msg.msg_controllen = ctl.cmsg.cmsg_len; > } > > /* > * Send to kernel... > */ > if ((n = sendmsg(so, &msg, MSG_EOR)) < 0) > syslog(LOG_ERR, "send: %s", strerror(errno)); > > returns with EINVAL. anybody out there who can look at this and say "of > course", send me the "of course" on how to fix it... :=-) What's returning EINVAL? Either 'so' is busted or you forgot to run openlog() before writing to syslog(). But of course I have no clue since I( din't know what's returning the bad value. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message