Date: Mon, 21 Jun 1999 10:30:03 -0700 (PDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/12311: Sys::Hostname.pm hangs forever Message-ID: <199906211730.KAA87321@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/12311; it has been noted by GNATS.
From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/12311: Sys::Hostname.pm hangs forever
Date: Mon, 21 Jun 1999 13:22:46 -0400 (EDT)
<<On Mon, 21 Jun 1999 09:50:01 -0700 (PDT), Sheldon Hearn <sheldonh@uunet.co.za> said:
> Your fix definitely makes the problem go away, but what about callers
> that really _don't_ want to receive a SIGCHLD?
The correct fix is to create a FreeBSD-specific mechanism to get the
hostname. (This took me all of ten minutes to do, most of which was
deleting all of the cruft h2xs put in that was not needed.) Then,
Sys::Hostname gets the following addition:
} elsif ($^O eq 'freebsd') {
require FreeBSD;
$host = "\0" x 1024; # XXX should import MAXHOSTNAMELEN
&FreeBSD::gethostname($host, length($host));
}
-GAWollman
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906211730.KAA87321>
