rbbt-util 5.5.45 → 5.5.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rbbt/tsv/index.rb +1 -1
- data/lib/rbbt/tsv/manipulate.rb +1 -0
- data/lib/rbbt/util/misc.rb +13 -12
- data/lib/rbbt/util/semaphore.rb +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2E2MTU2OTE1MjYyMzhkZmVhMWY5OWQ4MTJkNDM2YWRlYzA5NzY0Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjY4OTU1N2QwMjJjMWEzMjc4YzQ4NDJmY2EzNTRhZjY0OGU1NTgwNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjM0YjlhZmRiNTY2N2VmYjFjOWNmNjJhNWUwMWE3YjQ5ZjBkMzRlNjQ1YTU4
|
10
|
+
NmRiMjFmYWQwNTFhNTg0MDAxNWQ1ZWRmOGQwMzE0YmFkNDY1YmZhYjg4YzUw
|
11
|
+
NGZhMTNhMGUwNmE1ZTQ3ZWE4NzE5YjhhNmE3MTYwMWU5ZWIyZDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzJhMzM1M2NmYjliNjVkYzFkNzUwZWUyYWU5ZGI1Y2QxODI3MWE2MjZmMDM0
|
14
|
+
Mjk1MDBiOGFiMWIyYjE0YzJhZDc3ZGVmMzU2YWI0MTZkZGJmMjA4YzdjNjBj
|
15
|
+
Y2Q2Y2ZlYWFiYjNlMTJiYzFjYTYwNzVjODVkYzdhZDIyOWYwN2U=
|
data/lib/rbbt/tsv/index.rb
CHANGED
data/lib/rbbt/tsv/manipulate.rb
CHANGED
data/lib/rbbt/util/misc.rb
CHANGED
@@ -1372,18 +1372,19 @@ end
|
|
1372
1372
|
end
|
1373
1373
|
end
|
1374
1374
|
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
end
|
1375
|
+
#TODO: REMOVE
|
1376
|
+
#class RBBTError < StandardError
|
1377
|
+
# attr_accessor :info
|
1378
|
+
#
|
1379
|
+
# alias old_to_s to_s
|
1380
|
+
# def to_s
|
1381
|
+
# str = old_to_s.dup
|
1382
|
+
# if info
|
1383
|
+
# str << "\n" << "Additional Info:\n---\n" << info << "---"
|
1384
|
+
# end
|
1385
|
+
# str
|
1386
|
+
# end
|
1387
|
+
#end
|
1387
1388
|
|
1388
1389
|
module IndiferentHash
|
1389
1390
|
|
data/lib/rbbt/util/semaphore.rb
CHANGED
@@ -66,18 +66,23 @@ void post_semaphore(char* name){
|
|
66
66
|
begin
|
67
67
|
pids = elems.collect do |elem|
|
68
68
|
Process.fork do
|
69
|
-
RbbtSemaphore.wait_semaphore(file)
|
70
69
|
begin
|
71
|
-
|
72
|
-
|
73
|
-
|
70
|
+
RbbtSemaphore.wait_semaphore(file)
|
71
|
+
begin
|
72
|
+
yield elem
|
73
|
+
ensure
|
74
|
+
RbbtSemaphore.post_semaphore(file)
|
75
|
+
end
|
76
|
+
rescue
|
77
|
+
Log.error "Process #{Process.pid} was aborted"
|
74
78
|
end
|
75
79
|
end
|
76
80
|
end
|
77
81
|
pids.each do |pid| Process.waitpid pid end
|
78
82
|
rescue Exception
|
79
83
|
Log.error "Killing children: #{pids.sort * ", " }"
|
80
|
-
pids.each do |pid| begin Process.kill("INT", pid);
|
84
|
+
pids.each do |pid| begin Process.kill("INT", pid); rescue; end; end
|
85
|
+
pids.each do |pid| begin RbbtSemaphore.post_semaphore(file); rescue; end; end
|
81
86
|
Log.error "Ensuring children are dead: #{pids.sort * ", " }"
|
82
87
|
pids.each do |pid| begin Process.waitpid pid; rescue; end; end
|
83
88
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.5.
|
4
|
+
version: 5.5.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|