signal_action_handler 1.0.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '097ae081c2e06474af33104de8353d855e9fb456'
4
- data.tar.gz: 75e6a13eef5586d1f42a3e38fb8ba1c02c768b9a
3
+ metadata.gz: d1e0badc696c8a8f37ebfd43db43fa0a3d24f940
4
+ data.tar.gz: 1deb9c5485d46cd3a778cd48b84f4c7dc0f6bcc1
5
5
  SHA512:
6
- metadata.gz: 2a833ec567a36592a24d063d9e77bd292c2cfa83a077b2098cafad7b095fd28380141994aa23cafa7c230907e8d5deb9808531db1e3b3f2446b6c6707cb3853a
7
- data.tar.gz: 74c2d00000dcf36f7899a473c2fcfbddb71bc82933e46e233519086af68c0a20ee2e0237ffc41775e31fe49924912e518616f766f37a383395904116804ec403
6
+ metadata.gz: fc99b389bbed2d768edca2c7190d21d3884f67eb9aaeba3af824f7741c27bb02b479913420e0b6dc56fe7e07a95baa644453ce579642f77409a3e0584e16f8dd
7
+ data.tar.gz: e1b0f546c5d2a1b4c92c2600fae9a10bc2832c48e3965c974d03cd97574ee6638a84643d92144050678761e8f7b56077ef67bf258f96484cf43d85445f14d296
@@ -14,9 +14,6 @@ static const struct signals {
14
14
  #ifdef SIGQUIT
15
15
  {"QUIT", SIGQUIT},
16
16
  #endif
17
- #ifdef SIGILL
18
- {"ILL", SIGILL},
19
- #endif
20
17
  #ifdef SIGTRAP
21
18
  {"TRAP", SIGTRAP},
22
19
  #endif
@@ -29,18 +26,9 @@ static const struct signals {
29
26
  #ifdef SIGEMT
30
27
  {"EMT", SIGEMT},
31
28
  #endif
32
- #ifdef SIGFPE
33
- {"FPE", SIGFPE},
34
- #endif
35
29
  #ifdef SIGKILL
36
30
  {"KILL", SIGKILL},
37
31
  #endif
38
- #ifdef SIGBUS
39
- {"BUS", SIGBUS},
40
- #endif
41
- #ifdef SIGSEGV
42
- {"SEGV", SIGSEGV},
43
- #endif
44
32
  #ifdef SIGSYS
45
33
  {"SYS", SIGSYS},
46
34
  #endif
@@ -90,9 +78,6 @@ static const struct signals {
90
78
  #ifdef SIGXFSZ
91
79
  {"XFSZ", SIGXFSZ},
92
80
  #endif
93
- #ifdef SIGVTALRM
94
- {"VTALRM", SIGVTALRM},
95
- #endif
96
81
  #ifdef SIGPROF
97
82
  {"PROF", SIGPROF},
98
83
  #endif
@@ -175,13 +160,9 @@ VALUE method_info(VALUE self)
175
160
  {
176
161
  handler = "IGNORE";
177
162
  }
178
- else if (oldact.sa_handler == SIG_DFL)
163
+ else if (oldact.sa_handler == SIG_ERR)
179
164
  {
180
- handler = "SYSTEM_DEFAULT";
181
- }
182
- else if (oldact.sa_handler == SIG_DFL)
183
- {
184
- handler = "SYSTEM_DEFAULT";
165
+ handler = "ERROR";
185
166
  }
186
167
  else
187
168
  {
@@ -1 +1,5 @@
1
1
  require "signal_action_handler/signal_action_handler"
2
+
3
+ class SignalActionHandler
4
+ RESERVED_SIGNALS = %w[ILL FPE BUS SEGV VTALRM]
5
+ end
@@ -1,3 +1,3 @@
1
1
  class SignalActionHandler
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signal_action_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shayon Mukherjee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-27 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler