From owner-cvs-usrsbin Mon Sep 11 06:55:16 1995 Return-Path: cvs-usrsbin-owner Received: (from majordom@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA21299 for cvs-usrsbin-outgoing; Mon, 11 Sep 1995 06:55:16 -0700 Received: (from paul@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA21288 ; Mon, 11 Sep 1995 06:55:12 -0700 Date: Mon, 11 Sep 1995 06:55:12 -0700 From: Paul Richards Message-Id: <199509111355.GAA21288@freefall.freebsd.org> To: CVS-commiters, cvs-usrsbin Subject: cvs commit: src/usr.sbin/syslogd syslogd.c Sender: cvs-usrsbin-owner@FreeBSD.org Precedence: bulk paul 95/09/11 06:55:12 Modified: usr.sbin/syslogd syslogd.c Log: Remove unconditional unlink at startup and conditionalised the unlink at exit so that it only unlinks the file if syslogd knows it created it. If the path specified for the socket already exists then syslogd will now exit with an "address already in use" error which is more sensible than blindly unlinking the existing filename. This stops syslogd -d foo/bar from unlinking foo/bar if it's a real file.