Control: tags + patch Fix for struct sigaction initialization. Patch fixing struct sigaction initialization is attached.
Index: logkeys-0.1.1a/src/logkeys.cc =================================================================== --- logkeys-0.1.1a.orig/src/logkeys.cc 2010-05-31 05:04:57.000000000 +0000 +++ logkeys-0.1.1a/src/logkeys.cc 2013-11-25 14:27:17.000000000 +0000 @@ -150,7 +150,7 @@ void set_signal_handling() { // catch SIGHUP, SIGINT and SIGTERM signals to exit gracefully - struct sigaction act = {{0}}; + struct sigaction act = {}; act.sa_handler = signal_handler; sigaction(SIGHUP, &act, NULL); sigaction(SIGINT, &act, NULL); Index: logkeys-0.1.1a/src/upload.cc =================================================================== --- logkeys-0.1.1a.orig/src/upload.cc 2010-05-31 21:28:28.000000000 +0000 +++ logkeys-0.1.1a/src/upload.cc 2013-11-25 14:27:10.000000000 +0000 @@ -84,7 +84,7 @@ } // catch SIGHUP, SIGINT, SIGTERM signals to exit gracefully - struct sigaction act = {{0}}; + struct sigaction act = {}; act.sa_handler = uploader_signal_handler; sigaction(SIGHUP, &act, NULL); sigaction(SIGINT, &act, NULL);