[gmime] Don't try to fsync() pipes or sockets.
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Don't try to fsync() pipes or sockets.
- Date: Sun, 5 Aug 2012 18:07:46 +0000 (UTC)
commit bda4834d3d9a1fbefb6d97edfef2bc1da9357f58
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Aug 5 14:07:25 2012 -0400
Don't try to fsync() pipes or sockets.
2012-08-05 Jeffrey Stedfast <jeff xamarin com>
* gmime/gmime-stream-pipe.c (stream_flush): Pipes and sockets
cannot be fsync()'d, so don't even try!
ChangeLog | 5 +++++
gmime/gmime-stream-pipe.c | 6 +-----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cd5ab84..788cb09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-08-05 Jeffrey Stedfast <jeff xamarin com>
+ * gmime/gmime-stream-pipe.c (stream_flush): Pipes and sockets
+ cannot be fsync()'d, so don't even try!
+
+2012-08-05 Jeffrey Stedfast <jeff xamarin com>
+
* gmime/gmime-utils.c (rfc2047_token_new_encoded_word): Make sure
to properly handle broken encoded-word tokens in the form:
=?charset?q?=.
diff --git a/gmime/gmime-stream-pipe.c b/gmime/gmime-stream-pipe.c
index 6814325..1d063bd 100644
--- a/gmime/gmime-stream-pipe.c
+++ b/gmime/gmime-stream-pipe.c
@@ -33,10 +33,6 @@
#include "gmime-stream-pipe.h"
-#ifndef HAVE_FSYNC
-static int fsync (int fd) { return 0; }
-#endif
-
/**
* SECTION: gmime-stream-pipe
@@ -218,7 +214,7 @@ stream_flush (GMimeStream *stream)
return -1;
}
- return fsync (pipes->fd);
+ return 0;
}
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]