The sa_restorer field is not present on some architectures, like alpha.
By using memset, the structure is initialized appropriately regardless of
struct contents.
---
src/daemon/cgrulesengd.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c
index 65f6c03..c39aacc 100644
--- a/src/daemon/cgrulesengd.c
+++ b/src/daemon/cgrulesengd.c
@@ -1034,9 +1034,8 @@ int main(int argc, char *argv[])
* Set up the signal handler to reload the cached rules upon reception
* of a SIGUSR2 signal.
*/
+ memset(&sa, 0, sizeof(sa));
sa.sa_handler = &cgre_flash_rules;
- sa.sa_flags = 0;
- sa.sa_restorer = NULL;
sigemptyset(&sa.sa_mask);
if ((ret = sigaction(SIGUSR2, &sa, NULL))) {
flog(LOG_ERR, "Failed to set up signal handler for SIGUSR2."
--
1.7.0.2
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel