summaryrefslogtreecommitdiff
path: root/i/marvin/src/utils/test_signalhandler.cc
diff options
context:
space:
mode:
authorbeaufour2006-05-05 18:28:27 +0000
committerbeaufour2006-05-05 18:28:27 +0000
commit4e5c530cd695b4c5807a16b017b3fa9ef1d61886 (patch)
treee91a332ff30dd3d352f28a7e9b4502805aa85eaa /i/marvin/src/utils/test_signalhandler.cc
parent0f1dec71f0581546e6afc0d3e0f991968059b174 (diff)
Oui bon j'ai oublie de commite et ca compile.
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;
+}