Date: Sat, 12 Sep 1998 13:33:38 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: "Ron G. Minnich" <rminnich@Sarnoff.COM> Cc: questions@FreeBSD.ORG Subject: Re: a problem with mount_portal, which I hope is obvious to someone Message-ID: <Pine.BSF.4.03.9809121331400.19785-100000@resnet.uoregon.edu> In-Reply-To: <Pine.SUN.3.91.980911084307.16263A-100000@terra>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9809121331400.19785-100000>
