From owner-cvs-src-old@FreeBSD.ORG Tue Jan 25 23:02:49 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88EDE1065670 for ; Tue, 25 Jan 2011 23:02:49 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5CE488FC15 for ; Tue, 25 Jan 2011 23:02:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p0PN2ntN072426 for ; Tue, 25 Jan 2011 23:02:49 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p0PN2ncC072425 for cvs-src-old@freebsd.org; Tue, 25 Jan 2011 23:02:49 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201101252302.p0PN2ncC072425@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 25 Jan 2011 23:02:25 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/usr.bin/sed main.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2011 23:02:49 -0000 jilles 2011-01-25 23:02:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) usr.bin/sed main.c Log: SVN rev 217863 on 2011-01-25 23:02:25Z by jilles MFC r217133: sed: Try hard links to make -i target available continually. When creating a backup file, sed renamed the original before renaming the changed copy into place, leading to a short time when no file with the original name was present (usually only visible on SMP systems). Try creating the backup file using a hard link instead, avoiding this problem. If creating the hard link fails for any reason, fall back to the old rename method. When not creating a backup file, sed already renamed the changed copy onto the original. This remains unchanged. PR: bin/153261 Submitted by: Pedro F. Giffuni Reviewed by: dds (older version) Obtained from: Illumos Revision Changes Path 1.41.2.3 +21 -4 src/usr.bin/sed/main.c