Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGKILL can't be trapped, so don't try #2313

Merged
merged 1 commit into from
Mar 23, 2015
Merged

Conversation

tenderlove
Copy link
Contributor

The SIGKILL signal cannot be trapped or ignored, so we shouldn't try. Newer versions of Ruby will raise an exception if you try to trap this signal.

The SIGKILL signal [cannot be trapped or ignored](http://en.wikipedia.org/wiki/Unix_signal#SIGKILL), so we shouldn't try.  Newer versions of Ruby will raise an exception if you try to trap this signal.
@tenderlove tenderlove added the bug label Mar 23, 2015
@miq-bot
Copy link
Member

miq-bot commented Mar 23, 2015

Checked commit tenderlove@0c5d607 with rubocop 0.27.1
1 file checked, 1 offense detected

vmdb/lib/workers/worker_base.rb

@jrafanie
Copy link
Member

👍

jrafanie added a commit that referenced this pull request Mar 23, 2015
SIGKILL can't be trapped, so don't try
@jrafanie jrafanie merged commit 99fca18 into ManageIQ:master Mar 23, 2015
@jrafanie jrafanie deleted the signal branch March 23, 2015 20:11
@jrafanie jrafanie added this to the Sprint 21 Ending Mar 30, 2015 milestone Mar 23, 2015
jrafanie added a commit to jrafanie/manageiq that referenced this pull request Jun 25, 2015
Fixes `appliance_console.rb:105 in `trap': invalid argument - SIGKILL`

Ruby 2.1 and earlier lets you trap SIGKILL even though it's useless.
Ruby 2.2 won't let you try to trap it.

See ManageIQ#2313

[skip ci]
simaishi pushed a commit that referenced this pull request Oct 9, 2017
…ialog_field_types

Allow required flag to be set/unset for all dialog field types
(cherry picked from commit f40bb3b)

https://bugzilla.redhat.com/show_bug.cgi?id=1495971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants