Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 1999 04:36:01 -0500
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
Message-ID:  <19990820043601.E6984@holly.dyndns.org>
In-Reply-To: <199908200930.CAA29798@freefall.freebsd.org>
References:  <199908200930.CAA29798@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990820043601.E6984>