Date: Tue, 25 Jan 2011 23:02:25 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/sed main.c Message-ID: <201101252302.p0PN2ncC072425@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101252302.p0PN2ncC072425>
