Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2006 13:21:12 -0500 (CDT)
From:      Philip Hallstrom <freebsd@philip.pjkh.com>
To:        Zbigniew Szalbot <zbyszek@szalbot.homedns.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: having more than one process write to one log
Message-ID:  <20061019131953.M64208@bravo.pjkh.com>
In-Reply-To: <20061019195557.M97577@192.168.11.51>
References:  <20061019195557.M97577@192.168.11.51>

next in thread | previous in thread | raw e-mail | index | archive | help
> I will appreciate your advice. Is it possible and *safe* to allow two 
> different processes (dovecot and exim) to write to one log? Better not do it? 
> I would like to have both data in one log but... don't want to cause 
> problems. I don't think Windows would allow it. How about FBSD?

fopen() seems to say it's okay...

 		 ``a''   Open for writing.  The file is created if it does not
exist.  The stream is positioned at the end of the file.  Subsequent
writes to the file will always end up at the then current end of file,
irrespective of any intervening fseek(3) or similar.


Another idea is to use syslog....

-philip



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