sleepy_penguin 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +3 -0
- data/.manifest +8 -2
- data/ChangeLog +295 -0
- data/GIT-VERSION-FILE +1 -1
- data/GIT-VERSION-GEN +1 -1
- data/LATEST +19 -5
- data/LICENSE +2 -2
- data/NEWS +22 -0
- data/README +4 -4
- data/TODO +0 -2
- data/ext/sleepy_penguin/epoll.c +165 -88
- data/ext/sleepy_penguin/eventfd.c +89 -91
- data/ext/sleepy_penguin/extconf.rb +1 -0
- data/ext/sleepy_penguin/init.c +7 -0
- data/ext/sleepy_penguin/inotify.c +229 -91
- data/ext/sleepy_penguin/missing_epoll.h +30 -0
- data/ext/sleepy_penguin/missing_inotify.h +57 -0
- data/ext/sleepy_penguin/signalfd.c +335 -0
- data/ext/sleepy_penguin/sleepy_penguin.h +15 -55
- data/ext/sleepy_penguin/timerfd.c +78 -36
- data/ext/sleepy_penguin/util.c +149 -0
- data/lib/sleepy_penguin.rb +0 -6
- data/lib/sleepy_penguin/signalfd/sig_info.rb +20 -0
- data/lib/sleepy_penguin/sp.rb +4 -0
- data/pkg.mk +5 -4
- data/test/test_epoll.rb +29 -0
- data/test/test_epoll_gc.rb +1 -1
- data/test/test_epoll_optimizations.rb +5 -2
- data/test/test_eventfd.rb +24 -6
- data/test/test_inotify.rb +80 -1
- data/test/test_signalfd.rb +94 -0
- data/test/test_signalfd_siginfo.rb +32 -0
- data/test/test_timerfd.rb +34 -4
- metadata +22 -10
- data/ext/sleepy_penguin/nonblock.h +0 -19
- data/script/isolate_for_tests +0 -30
data/script/isolate_for_tests
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# scripts/Makefiles can read and eval the output of this script and
|
3
|
-
# use it as RUBYLIB
|
4
|
-
require 'rubygems'
|
5
|
-
require 'isolate'
|
6
|
-
fp = File.open(__FILE__, "rb")
|
7
|
-
fp.flock(File::LOCK_EX)
|
8
|
-
|
9
|
-
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
10
|
-
opts = {
|
11
|
-
:system => false,
|
12
|
-
# we want "ruby-1.8.7" and not "ruby-1.8", so disable :multiruby
|
13
|
-
:multiruby => false,
|
14
|
-
:path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}",
|
15
|
-
}
|
16
|
-
|
17
|
-
pid = fork do
|
18
|
-
Isolate.now!(opts) do
|
19
|
-
gem 'strace_me', '1.0.0'
|
20
|
-
end
|
21
|
-
end
|
22
|
-
_, status = Process.waitpid2(pid)
|
23
|
-
status.success? or abort status.inspect
|
24
|
-
lib_paths = Dir["#{opts[:path]}/gems/*-*/{lib,ext}"]
|
25
|
-
lib_paths.map! { |x| File.expand_path(x) }
|
26
|
-
dst = "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}/isolate.mk"
|
27
|
-
File.open("#{dst}.#$$", "w") do |fp|
|
28
|
-
fp.puts "ISOLATE_LIBS=#{lib_paths.join(':')}"
|
29
|
-
end
|
30
|
-
File.rename("#{dst}.#$$", dst)
|