diff options
-rw-r--r-- | accel-pppd/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/accel-pppd/main.c b/accel-pppd/main.c index 298e0391..d77d7c41 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)); |