summaryrefslogtreecommitdiff
path: root/accel-pppd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/main.c')
-rw-r--r--accel-pppd/main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c
index 298e039..d77d7c4 100644
--- a/accel-pppd/main.c
+++ b/accel-pppd/main.c
@@ -229,6 +229,11 @@ static void shutdown_cb()
pthread_mutex_unlock(&lock);
}
+static void log_version()
+{
+ log_msg("accel-ppp version %s\n", ACCEL_PPP_VERSION);
+}
+
int main(int _argc, char **_argv)
{
sigset_t set;
@@ -312,14 +317,13 @@ int main(int _argc, char **_argv)
openssl_init();
#endif
+ triton_register_init(0, log_version);
+
if (triton_load_modules("modules"))
return EXIT_FAILURE;
- log_msg("accel-ppp version %s\n", ACCEL_PPP_VERSION);
-
triton_run();
-
sigfillset(&set);
memset(&sa, 0, sizeof(sa));