summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp/ppp.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-12-19 10:35:14 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-12-19 10:35:14 +0300
commitaff9ec94d82bb46235da0b4be1b2e5e9c9dafbc2 (patch)
treeabda301fed7d9851727e5fdd10d7635b6eb3d6cb /accel-pptpd/ppp/ppp.c
parente8507d40aa9d55eb3af6196584bf3118d4f08050 (diff)
downloadaccel-ppp-aff9ec94d82bb46235da0b4be1b2e5e9c9dafbc2.tar.gz
accel-ppp-aff9ec94d82bb46235da0b4be1b2e5e9c9dafbc2.zip
cli: shutdown cancel command
Diffstat (limited to 'accel-pptpd/ppp/ppp.c')
-rw-r--r--accel-pptpd/ppp/ppp.c6
1 files changed, 2 insertions, 4 deletions
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);
}