From eca21af74910ed2f325fd72c9a5038d8eff6b37d Mon Sep 17 00:00:00 2001 From: lnu Date: Thu, 3 Apr 2008 12:14:08 +0000 Subject: fix for gna 10516 git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@144 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/feed2imap.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib') diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index 9a59432..284275a 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -121,16 +121,32 @@ class Feed2Imap if feed.url s = HTTPFetcher::fetch(feed.url, @cache.get_last_check(feed.name)) elsif feed.execurl + # avoid running more than one command at the same time. + # We need it because the called command might not be + # thread-safe, and we need to get the right exitcode + mutex.lock s = %x{#{feed.execurl}} + if $?.exitstatus != 0 + @logger.warn("Command for #{feed.name} exited with status #{$?.exitstatus} !") + end + mutex.unlock else @logger.warn("No way to fetch feed #{feed.name} !") end if feed.filter + # avoid running more than one command at the same time. + # We need it because the called command might not be + # thread-safe, and we need to get the right exitcode. + mutex.lock Open3::popen3(feed.filter) do |stdin, stdout| stdin.puts s stdin.close s = stdout.read end + if $?.exitstatus != 0 + @logger.warn("Filter command for #{feed.name} exited with status #{$?.exitstatus}. Output might be corrupted !") + end + mutex.unlock end sparefetchers_mutex.synchronize do sparefetchers += 1 -- cgit v1.2.3-54-g00ecf elect>
path: root/ui-diff.c (unfollow)
Commit message (Expand)AuthorFilesLines
2013-04-08Return const char * in cgit_{httpscheme, hosturl, rooturl}()Lukas Fleischer3-9/+9
2013-04-08Update git to v1.8.2.1John Keeping4-5/+6
2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping1-1/+1
2013-03-20Convert pager navigation into a unordered listLukas Fleischer3-9/+20
2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld1-1/+1
2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer1-6/+14
2013-03-20Fix colspan valuesLukas Fleischer3-14/+28
2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3
2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1
2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1
2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8
2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1
2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80