diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-04-29 23:25:30 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2002-04-29 23:25:30 +0000 |
commit | 4595219ad6133680ea149e1d418d3bbbf27d3de1 (patch) | |
tree | 9f54ba9256ab3653d6c2953b376ad48b963523f8 /editors/led | |
parent | 95226f0111cc7874e01b3c92fa0828331bd0a999 (diff) | |
download | freebsd-ports-4595219ad6133680ea149e1d418d3bbbf27d3de1.zip |
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/led')
-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 e4a29d221434..8bdc898234e9 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 000000000000..e0df894f46ba --- /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)); + } |