From owner-freebsd-hackers Thu Feb 22 10:55:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.nettoll.com (matrix.nettoll.net [212.155.143.61]) by hub.freebsd.org (Postfix) with ESMTP id E064237B491 for ; Thu, 22 Feb 2001 10:55:44 -0800 (PST) (envelope-from usebsd@free.fr) Received: by smtp.nettoll.com; Thu, 22 Feb 2001 19:52:34 +0100 (MET) Message-Id: <4.3.0.20010222194459.0242d850@pop.free.fr> X-Sender: usebsd@pop.free.fr X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Thu, 22 Feb 2001 19:54:54 +0100 To: diman From: mouss Subject: Re: warning in free(): Cc: diwil@eis.ru, freebsd-hackers@FreeBSD.ORG In-Reply-To: References: <4.3.0.20010222164121.0594c510@pop.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 18:37 22/02/01 +0200, diman wrote: >Open AF_UNIX socket to syslogd and then use err_set_file() >to redirect all err/warn messages to syslogd instead of >stdin/stdout. That should help you debug daemons. I agree, but one of the nice things about syslog interface is that it hides all the socket/device stuff. so getting back to the socket api is somewhat unsatisfactory. Also, I think having this directly in err() and warn() and friends would be more elegant. and this doesn't seem hard to do. something like using a function pointer to use fprintf or syslog, and an additionnal void* to use either err_file or syslog priority. Does this sound ok or is it an unuseful complication of code? cheers, mouss To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message