aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-03-11 01:53:56 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-03-11 01:53:56 +0800
commitd335a3f167e54ab95d5fdfc887da6ff4393eaf32 (patch)
tree6512b9c57bfc742caea0354df4f63383a333b9f2
parente8e1b0b8234621a3fb0f0f56e4d20563ad0e8165 (diff)
downloadgsoc2013-evolution-d335a3f167e54ab95d5fdfc887da6ff4393eaf32.tar.gz
gsoc2013-evolution-d335a3f167e54ab95d5fdfc887da6ff4393eaf32.tar.zst
gsoc2013-evolution-d335a3f167e54ab95d5fdfc887da6ff4393eaf32.zip
call camel_stream_close and close the fds[1]
2004-03-10 Radek Doulik <rodo@ximian.com> * em-junk-filter.c (pipe_to_sa_with_error): call camel_stream_close and close the fds[1] svn path=/trunk/; revision=25009
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-junk-filter.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index cd691be0e1..20384c03b6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-10 Radek Doulik <rodo@ximian.com>
+
+ * em-junk-filter.c (pipe_to_sa_with_error): call
+ camel_stream_close and close the fds[1]
+
2004-03-08 Jeffrey Stedfast <fejj@ximian.com>
* em-folder-tree.c (emft_create_folder): New async function to
diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c
index ef5578e555..a5d04e17ce 100644
--- a/mail/em-junk-filter.c
+++ b/mail/em-junk-filter.c
@@ -168,12 +168,13 @@ pipe_to_sa_with_error (CamelMimeMessage *msg, const char *in, char **argv, int r
camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (msg), stream);
camel_stream_flush (stream);
+ camel_stream_close (stream);
camel_object_unref (stream);
} else if (in) {
camel_write (fds[1], in, strlen (in));
- close (fds[1]);
}
+ close (fds[1]);
result = waitpid (pid, &status, 0);
if (result == -1 && errno == EINTR) {