From owner-cvs-all Mon Mar 1 23: 0:14 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 99B361549B; Mon, 1 Mar 1999 22:53:31 -0800 (PST) (envelope-from grog@FreeBSD.org) Received: (from grog@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id WAA44585; Mon, 1 Mar 1999 22:53:16 -0800 (PST) (envelope-from grog@FreeBSD.org) Message-Id: <199903020653.WAA44585@freefall.freebsd.org> From: Greg Lehey Date: Mon, 1 Mar 1999 22:53:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinumdaemon.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk grog 1999/03/01 22:53:16 PST Modified files: sys/dev/vinum vinumdaemon.c Log: change printf() calls to log() calls. Don't save config while we're reading it from disk. Change the way we handle the daemon: if we can't communicate with it for 1 second (which is possible), start a new one. The daemon saves its pid in daemonpid; on each iteration of the main loop the daemon checks whether it's still in favour. If not, it silently exits. Also, when trying to communicate with the daemon, check daemonpid first. If it's set to 0, don't even try. Revision Changes Path 1.5 +24 -18 src/sys/dev/vinum/vinumdaemon.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message