From owner-cvs-all@FreeBSD.ORG Mon Oct 15 10:49:06 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3154316A420; Mon, 15 Oct 2007 10:49:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0DAA213C455; Mon, 15 Oct 2007 10:49:06 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9FAn511030885; Mon, 15 Oct 2007 10:49:05 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9FAn5qv030884; Mon, 15 Oct 2007 10:49:05 GMT (envelope-from kib) Message-Id: <200710151049.l9FAn5qv030884@repoman.freebsd.org> From: Konstantin Belousov Date: Mon, 15 Oct 2007 10:49:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/lib/libutil pidfile.3 pidfile.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2007 10:49:06 -0000 kib 2007-10-15 10:49:05 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) lib/libutil pidfile.3 pidfile.c Log: MFC rev. 1.6, 1.7 of src/lib/libutil/pidfile.3, rev. 1.8 of src/lib/libutil/pidfile.c: When pidfile is already locked and has zero length, do not return success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep up to three times for 5 ms while waiting for pidfile to be written. Approved by: re (kensmith) Revision Changes Path 1.5.2.1 +5 -0 src/lib/libutil/pidfile.3 1.7.2.1 +15 -1 src/lib/libutil/pidfile.c