From 446650c8e1c73d02d7d2746ed79198963f8be1e6 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 26 Dec 2017 21:06:22 +0300 Subject: move version message to top --- accel-pppd/main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'accel-pppd/main.c') 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)); -- cgit v1.2.3