Date: Fri, 20 Aug 1999 02:40:02 -0700 (PDT) From: Chris Costello <chris@calldei.com> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/13265: lock doesn't lock Message-ID: <199908200940.CAA30447@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR misc/13265; it has been noted by GNATS.
From: Chris Costello <chris@calldei.com>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/13265: lock doesn't lock
Date: Fri, 20 Aug 1999 04:36:01 -0500
On Fri, Aug 20, 1999, Sheldon Hearn wrote:
> How long do you leave it before giving up and hitting Ctrl-C? Give it a
> while. You might find that it's having a problem with gethostname(). Is
> your machine's hostname configured? What do you see when you do this on
> the command-line:
There are no network operations in gethostname(3):
int
gethostname(name, namelen)
char *name;
int namelen;
{
int mib[2];
size_t size;
mib[0] = CTL_KERN;
mib[1] = KERN_HOSTNAME;
size = namelen;
if (sysctl(mib, 2, name, &size, NULL, 0) == -1)
return (-1);
return (0);
}
--
|Chris Costello <chris@calldei.com>
|I haven't lost my mind; it's backed up on tape somewhere.
`---------------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908200940.CAA30447>
