From owner-freebsd-hackers Thu Dec 19 0:37:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B921137B401 for ; Thu, 19 Dec 2002 00:37:12 -0800 (PST) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD1EC43ED1 for ; Thu, 19 Dec 2002 00:37:05 -0800 (PST) (envelope-from hm@kts.org) Received: from fwd02.sul.t-online.de by mailout04.sul.t-online.com with smtp id 18OwAy-0005h7-0E; Thu, 19 Dec 2002 09:37:04 +0100 Received: from ernie.kts.org (520021727764-0001@[80.129.210.201]) by fmrl02.sul.t-online.com with esmtp id 18OwAm-2BZNx2C; Thu, 19 Dec 2002 09:36:52 +0100 Received: from bert.kts.org (bert.kts.org [194.55.156.2]) by ernie.kts.org (Postfix) with ESMTP id 159BB4C962; Thu, 19 Dec 2002 09:36:51 +0100 (CET) Received: by bert.kts.org (Postfix, from userid 100) id B4F204633; Thu, 19 Dec 2002 08:36:40 +0100 (CET) Subject: Re: Perl issue on freebsd 4.x? In-Reply-To: <20021219022152.GA6708@ussenterprise.ufp.org> To: Leo Bicknell Date: Thu, 19 Dec 2002 08:36:40 +0100 (CET) Cc: freebsd-hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20021219073640.B4F204633@bert.kts.org> From: hm@kts.org (Hellmuth Michaelis) X-Sender: 520021727764-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Leo Bicknell wrote: > I have a script where I attempt to use Sys::Syslog, and while it > works on several platforms it does not work on FreeBSD 4.x (well, I just had this problem a few days ago, the machine it runs on also uses -s with syslogd (on 4.7-stable). The solution was to use use Sys::Syslog qw(:DEFAULT setlogsock); instead of use Sys::Syslog; and later do a setlogsock('unix'); right before the call to openlog(). Syslogd on the machine listens on an "*.syslog" udp4 socket. The machine is multihomed. The "-s" flag to syslogd is explained as "Do not log messages from remote machines" - perhaps the perl process is considered to be remote ? hellmuth -- Hellmuth Michaelis Hamburg, Europe hm@kts.org www.kts.org There is a difference between an open mind and a hole in the head. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message