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

[dev.icinga.com #12940] SIGALRM handling may be affected by recent commit #4740

Closed
icinga-migration opened this issue Oct 18, 2016 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12940

Created by jyoung15 on 2016-10-18 14:17:47 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2016-10-24 06:50:05 +00:00)
Target Version: 2.6.0
Last Update: 2016-10-24 23:53:23 +00:00 (in Redmine)

Icinga Version: v2.5.4-160-g08460e7
Backport?: Not yet backported
Include in Changelog: 1

a7b0cb5 introduced a signal mask in ProcessHandler (source:lib/base/process.cpp#L229) to be applied before calling external plugins. It appears all signals are now masked in plugins, including SIGALRM which may be used in certain cases for internal timeouts.

Attached is a basic c plugin to test this. With the old behavior, the signal handler is called as expected.

pre_commit_a7b0cb5f.png

With the new behavior, the signal handler is not called.

commit_a7b0cb5f.png

If this behavior change is intentional, it should probably be documented.

Attachments

Changesets

2016-10-24 06:42:40 +00:00 by gbeutner c0bc156

Don't mask all signals in the subprocess handler

fixes #12940

Relations:

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-10-24 06:35:19 +00:00

  • Category changed from Cluster to libbase
  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.6.0

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-10-24 06:43:54 +00:00

Thanks for the detailed analysis. Quite frankly I can't remember the rationale for masking signals in the sub-process handler. Can you try the patch I'm about to commit in a few minutes?

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-10-24 06:50:05 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset c0bc156.

@icinga-migration
Copy link
Author

Updated by jyoung15 on 2016-10-24 23:53:23 +00:00

Confirmed the issue is resolved. Thank You!

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-21 15:12:08 +00:00

  • Relates set to 13269

@icinga-migration icinga-migration added bug Something isn't working libbase labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.6.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant