quattor / ncm-ncd

Node Configuration Dispatcher Framework for Components
www.quattor.org
Other
3 stars 8 forks source link

ComponentProxy: disable uninitialized warnings while restoring ENV and SIG #106

Closed stdweird closed 7 years ago

stdweird commented 7 years ago

In old perl (up to EL5), ENV and SIG are magic variables with their own warning handlers, and you cannot assign an undef or empty string without triggering a warning. In particular annoying to restore SIG, which is initalised as a hash with all possible signals with undef value (and restoring those is one undef assignment per key, and thus one warning).

Unittests on el5 fail due to these produced warnings.

Also fixes #75