[DRE-commits] [ruby-daemons] 01/01: added patch to remove code that was added in 1.19

Jonas Genannt jonas at brachium-system.net
Sun Dec 1 13:22:40 UTC 2013


This is an automated email from the git hooks/post-receive script.

hggh-guest pushed a commit to branch master
in repository ruby-daemons.

commit 36c5c0752add089579dfc8438dd7be4b9d6bd337
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Sun Dec 1 14:21:36 2013 +0100

    added patch to remove code that was added in 1.19
    
    while testing stompserver I discovered this problem with ruby 1.9/2.0
---
 .../patches/remove_try_close_file_decriptors.patch  | 21 +++++++++++++++++++++
 debian/patches/series                               |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/remove_try_close_file_decriptors.patch b/debian/patches/remove_try_close_file_decriptors.patch
new file mode 100644
index 0000000..6e36bb7
--- /dev/null
+++ b/debian/patches/remove_try_close_file_decriptors.patch
@@ -0,0 +1,21 @@
+Author: Jonas Genannt <jonas.genannt at capi2name.de>
+Description: this code was added in 1.1.9 but is not compatible with MRI > 1.8.
+             MRI > 1.8 uses an separate thread to handle signals, which starts
+             on VM initialization
+
+--- a/lib/daemons/daemonize.rb
++++ b/lib/daemons/daemonize.rb
+@@ -132,13 +132,6 @@
+       end
+     end
+     
+-    # Make sure all input/output streams are closed
+-    # Part II: close all file decriptors (except for STDIN/STDOUT/STDERR)
+-    ios = Array.new(8192) {|i| IO.for_fd(i) rescue nil}.compact
+-    ios.each do |io|
+-      next if io.fileno < 3
+-      io.close
+-    end
+   end
+   module_function :close_io
+   
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a4c05b7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove_try_close_file_decriptors.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-daemons.git



More information about the Pkg-ruby-extras-commits mailing list