summaryrefslogtreecommitdiff
path: root/i/marvin/src/utils/test_signalhandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/utils/test_signalhandler.cc')
-rw-r--r--i/marvin/src/utils/test_signalhandler.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/i/marvin/src/utils/test_signalhandler.cc b/i/marvin/src/utils/test_signalhandler.cc
new file mode 100644
index 0000000..e25b1d2
--- /dev/null
+++ b/i/marvin/src/utils/test_signalhandler.cc
@@ -0,0 +1,15 @@
+#include <iostream>
+#include "signalhandler.hh"
+
+void res()
+{
+ std::cout << "RESET" << std::endl;
+}
+
+int main()
+{
+ SignalHandler<SIGINT> test;
+ test.bind(res);
+ while(1);
+ return 0;
+}