summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-08-04 12:11:01 -0700
committerNoah Watkins <noahwatkins@gmail.com>2013-09-17 10:40:56 -0700
commit335607dd1e1530034753ffa797428dc7c734885d (patch)
tree668a50ce87f0ea2051540fa4d5b493b6117e7aae
parentf6ca653ec7e7e4d5d5092f35f62a6a8e138bd727 (diff)
downloadceph-335607dd1e1530034753ffa797428dc7c734885d.tar.gz
rgw: avoid linuxism sighandler_t in favor of sig_t
Note that according to Linux manpage, signal(2) for custom handler functions isn't portable, and sigaction should be used instead. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r--src/rgw/rgw_main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc
index 54db609521c..48fb056790b 100644
--- a/src/rgw/rgw_main.cc
+++ b/src/rgw/rgw_main.cc
@@ -61,11 +61,13 @@
#include "include/types.h"
#include "common/BackTrace.h"
+#include "include/compat.h"
+
#define dout_subsys ceph_subsys_rgw
using namespace std;
-static sighandler_t sighandler_alrm;
+static sig_t sighandler_alrm;
class RGWProcess;