From 14763d00a0777b7a27eb49eb5f91ac802c05ecb5 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Wed, 25 Aug 2010 19:50:32 +0400 Subject: rewriting triton library... --- accel-pptpd/main.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 accel-pptpd/main.c (limited to 'accel-pptpd/main.c') diff --git a/accel-pptpd/main.c b/accel-pptpd/main.c new file mode 100644 index 00000000..ff74305b --- /dev/null +++ b/accel-pptpd/main.c @@ -0,0 +1,29 @@ +#include "triton/triton.h" +#include "log.h" + +void sigterm(int num) +{ + triton_terminate(); +} +int main(int argc,char **argv) +{ + sigset_t set; + + log_init(stdout,4,0); + + triton_init(); + triton_run(); + + signal(SIGTERM,sigterm); + sigfillset(&set); + sigdelset(&set, SIGTERM); + sigdelset(&set, SIGSEGV); + sigdelset(&set, SIGILL); + sigdelset(&set, SIGFPE); + sigdelset(&set, SIGBUS); + + sigsuspend(&set); + + return EXIT_SUCCESS; +} + -- cgit v1.2.3