Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 1999 16:10:03 -0700 (PDT)
From:      David Muir Sharnoff <muir@idiom.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/12311: Hostname.pm hangs forever
Message-ID:  <199906202310.QAA00540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/12311; it has been noted by GNATS.

From: David Muir Sharnoff <muir@idiom.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/12311: Hostname.pm hangs forever
Date: Sun, 20 Jun 1999 16:08:21 -0700 (PDT)

 The fix I submitted doesn't work in all cases.  Here is a better
 fix:
 
 Index: contrib/perl5/lib/Sys//Hostname.pm
 ===================================================================
 RCS file: /usr/cvs/src/contrib/perl5/lib/Sys/Hostname.pm,v
 retrieving revision 1.1.1.1
 diff -c -r1.1.1.1 Hostname.pm
 *** Hostname.pm	1998/09/09 06:59:55	1.1.1.1
 --- Hostname.pm	1999/06/20 22:59:51
 ***************
 *** 94,99 ****
 --- 94,100 ----
       # method 3 - trusty old hostname command
       || eval {
   	local $SIG{__DIE__};
 + 	local $SIG{CHLD};
   	$host = `(hostname) 2>/dev/null`; # bsdish
       }
   
 


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?199906202310.QAA00540>