diff options
author | sobomax <sobomax@FreeBSD.org> | 2002-04-29 23:25:30 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2002-04-29 23:25:30 +0000 |
commit | a20a7229b1835316cbb262bb1dc2d4691e2af425 (patch) | |
tree | a02d8727cea753b54d79fadd455939019d45fc8c /editors | |
parent | 7fb3c7cd4d4d696230409c288f6bf0d77e5e73d8 (diff) | |
download | FreeBSD-ports-a20a7229b1835316cbb262bb1dc2d4691e2af425.zip FreeBSD-ports-a20a7229b1835316cbb262bb1dc2d4691e2af425.tar.gz |
Issue fflush()->fsync() after saving file to the disk, so that the user will
not get zero-sized file after reboot if the system crashed shortly after the
save, as it usually the case when you are hacking some potential panic(9)
implementation (e.g. kernel module). Bump PORTREVISION.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/led/Makefile | 1 | ||||
-rw-r--r-- | editors/led/files/patch-src::file.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/editors/led/Makefile b/editors/led/Makefile index e4a29d2..8bdc898 100644 --- a/editors/led/Makefile +++ b/editors/led/Makefile @@ -7,6 +7,7 @@ PORTNAME= led PORTVERSION= 0.9.2 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME}-editor diff --git a/editors/led/files/patch-src::file.c b/editors/led/files/patch-src::file.c new file mode 100644 index 0000000..e0df894f --- /dev/null +++ b/editors/led/files/patch-src::file.c @@ -0,0 +1,12 @@ + +$FreeBSD$ + +--- src/file.c.orig Sun Jun 10 06:44:19 2001 ++++ src/file.c Tue Apr 30 02:15:40 2002 +@@ -148,4 +148,6 @@ + + curr = curr->next; + } ++ fflush(fp); ++ fsync(fileno(fp)); + } |