[tracker] tracker-extract, pdf: Swapped close of the file descriptors
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract, pdf: Swapped close of the file descriptors
- Date: Thu, 29 Dec 2011 13:30:51 +0000 (UTC)
commit 0ec7ea60dab20290f6570279bbcdd000b5763f49
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Dec 29 14:29:17 2011 +0100
tracker-extract, pdf: Swapped close of the file descriptors
Previous commit had a bug: the close call on the file descriptors
of pipe were swapped between client and parent's code blocks. Oeps.
Fixes NB#290406.
src/tracker-extract/tracker-extract-pdf.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index 7a16940..b204b5e 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -284,7 +284,7 @@ extract_content (PopplerDocument *document,
g_object_unref (dataout_stream);
g_object_unref (output_stream);
- close (fd[0]);
+ close (fd[1]);
exit (0);
} else {
gboolean failed = FALSE;
@@ -348,7 +348,7 @@ extract_content (PopplerDocument *document,
g_object_unref (input_stream);
}
- close (fd[1]);
+ close (fd[0]);
}
} else {
close (fd[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]