You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
With the new behavior, the signal handler is not called.
If this behavior change is intentional, it should probably be documented.
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?
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)
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.
With the new behavior, the signal handler is not called.
If this behavior change is intentional, it should probably be documented.
Attachments
Changesets
2016-10-24 06:42:40 +00:00 by gbeutner c0bc156
Relations:
The text was updated successfully, but these errors were encountered: