unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob de372679e95d091e38ed0720ff9ae5918ff6780c 922 bytes (raw)
name: contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
Mikhail Gusarov <dottedmag@dottedmag.net> (2009-11-17) (inbox)
Subject: [notmuch] [PATCH 1/2] Close message file after parsing message	headers
To: notmuch@notmuchmail.org
Date: Tue, 17 Nov 2009 21:28:37 +0600

Keeping unused files open helps to see "Too many open files" often.

Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
---
 lib/message-file.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/message-file.c b/lib/message-file.c
index 8a3f8ee..197ab01 100644
--- a/lib/message-file.c
+++ b/lib/message-file.c
@@ -325,6 +325,11 @@ notmuch_message_file_get_header (notmuch_message_file_t
*message,
	    return decoded_value;
     }

+    if (message->parsing_finished) {
+        fclose (message->file);
+        message->file = NULL;
+    }
+
     if (message->line)
	free (message->line);
     message->line = NULL;
[ 2-line signature. Click/Enter to show. ]
-- 
1.6.3.3

debug log:

solving de37267 ...
found de37267 in https://yhetil.org/notmuch/1351797910-19305-1-git-send-email-markwalters1009@gmail.com/

applying [1/1] https://yhetil.org/notmuch/1351797910-19305-1-git-send-email-markwalters1009@gmail.com/
diff --git a/contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window b/contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window
new file mode 100644
index 0000000..de37267

1:37: trailing whitespace.
-- 
Checking patch contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window...
Applied patch contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 de372679e95d091e38ed0720ff9ae5918ff6780c	contrib/notmuch-pick/test/pick.expected-output/notmuch-pick-show-window

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).