dorothy2 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/CHANGELOG +14 -0
- data/README.md +10 -6
- data/TODO +1 -1
- data/UPDATE +7 -9
- data/bin/dorothy_start +3 -3
- data/bin/dparser_start +14 -11
- data/bin/dparser_stop +3 -0
- data/dorothy2.gemspec +2 -1
- data/etc/ddl/dorothive.ddl +38 -32
- data/etc/extensions.yml +7 -0
- data/lib/doroParser.rb +8 -15
- data/lib/dorothy2.rb +10 -9
- data/lib/dorothy2/BFM.rb +1 -1
- data/lib/dorothy2/DEM.rb +371 -448
- data/lib/dorothy2/NAM.rb +3 -3
- data/lib/dorothy2/do-init.rb +7 -0
- data/lib/dorothy2/do-utils.rb +10 -7
- data/lib/dorothy2/version.rb +1 -1
- data/lib/mu/xtractr.rb +1 -1
- data/lib/mu/xtractr/host.rb +6 -3
- metadata +184 -230
- data/lib/dorothy2/environment.rb +0 -25
data/lib/dorothy2/environment.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
module Process
|
2
|
-
# Supply daemon for pre ruby 1.9
|
3
|
-
# Adapted from lib/active_support/core_ext/process/daemon.rb
|
4
|
-
def self.daemon(nochdir = nil, noclose = nil)
|
5
|
-
exit! if fork # Parent exits, child continues.
|
6
|
-
Process.setsid # Become session leader.
|
7
|
-
exit! if fork # Zap session leader. See [1].
|
8
|
-
|
9
|
-
unless nochdir
|
10
|
-
Dir.chdir "/" # Release old working directory.
|
11
|
-
end
|
12
|
-
|
13
|
-
unless noclose
|
14
|
-
STDIN.reopen "/dev/null" # Free file descriptors and
|
15
|
-
STDOUT.reopen "/dev/null", "a" # point them somewhere sensible.
|
16
|
-
STDERR.reopen '/dev/null', 'a'
|
17
|
-
end
|
18
|
-
|
19
|
-
trap("TERM") { exit }
|
20
|
-
|
21
|
-
return 0
|
22
|
-
|
23
|
-
end unless self.respond_to? :daemon
|
24
|
-
end
|
25
|
-
|