aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {