From owner-cvs-src@FreeBSD.ORG Sun Apr 16 04:43:33 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4509C16A400; Sun, 16 Apr 2006 04:43:33 +0000 (UTC) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00A4C43D45; Sun, 16 Apr 2006 04:43:33 +0000 (GMT) (envelope-from jmg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3G4hWP7041660; Sun, 16 Apr 2006 04:43:32 GMT (envelope-from jmg@repoman.freebsd.org) Received: (from jmg@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3G4hWau041659; Sun, 16 Apr 2006 04:43:32 GMT (envelope-from jmg) Message-Id: <200604160443.k3G4hWau041659@repoman.freebsd.org> From: John-Mark Gurney Date: Sun, 16 Apr 2006 04:43:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6_1 Cc: Subject: cvs commit: src/lib/libutil pidfile.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 04:43:33 -0000 jmg 2006-04-16 04:43:32 UTC FreeBSD src repository Modified files: (Branch: RELENG_6_1) lib/libutil pidfile.c Log: MFC: v1.2 pidfile.c use pwrite to always write at the begining of the file.. If multiple calls to pidfile_write happen, the pidfile will have nul characters prepended due to the cached file descriptor offset... Approved by: re (scottl) Revision Changes Path 1.1.2.1.2.1 +1 -1 src/lib/libutil/pidfile.c