From aff9ec94d82bb46235da0b4be1b2e5e9c9dafbc2 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sun, 19 Dec 2010 10:35:14 +0300 Subject: cli: shutdown cancel command --- accel-pptpd/ppp/ppp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'accel-pptpd/ppp/ppp.c') diff --git a/accel-pptpd/ppp/ppp.c b/accel-pptpd/ppp/ppp.c index f5abbab..84c05eb 100644 --- a/accel-pptpd/ppp/ppp.c +++ b/accel-pptpd/ppp/ppp.c @@ -32,7 +32,7 @@ __export LIST_HEAD(ppp_list); static LIST_HEAD(layers); int __export sock_fd; -static int ppp_shutdown; +int __export ppp_shutdown; static unsigned long long seq; #if __WORDSIZE == 32 @@ -602,7 +602,7 @@ struct ppp_layer_data_t *ppp_find_layer_data(struct ppp_t *ppp, struct ppp_layer return NULL; } -static void ev_shutdown_soft(void) +void ppp_shutdown_soft(void) { ppp_shutdown = 1; @@ -659,8 +659,6 @@ static void __init init(void) //log_emerg("ppp: failed to open seq-file (%s): %s\n", opt, strerror(errno)); seq = (unsigned long long)random() * (unsigned long long)random(); - triton_event_register_handler(EV_SHUTDOWN_SOFT, (triton_event_func)ev_shutdown_soft); - atexit(save_seq); } -- cgit v1.2.3