aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/em-junk-filter.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 20384c03b6..a20bfa444e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -2,6 +2,8 @@
* em-junk-filter.c (pipe_to_sa_with_error): call
camel_stream_close and close the fds[1]
+ (pipe_to_sa_with_error): do not call close, camel_stream_close
+ should be enough to be sure the fd was closed
2004-03-08 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/mail/em-junk-filter.c b/mail/em-junk-filter.c
index a5d04e17ce..6123e7e3e2 100644
--- a/mail/em-junk-filter.c
+++ b/mail/em-junk-filter.c
@@ -174,7 +174,6 @@ pipe_to_sa_with_error (CamelMimeMessage *msg, const char *in, char **argv, int r
camel_write (fds[1], in, strlen (in));
}
- close (fds[1]);
result = waitpid (pid, &status, 0);
if (result == -1 && errno == EINTR) {