summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-05-14 22:22:54 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-05-14 22:30:13 +0400
commit64c36cc7dc0beac13c715bb5dedc697861c1badf (patch)
treea5cdd9d40a8f1c7662f541340ec6c55bc7b80252 /accel-pppd/ppp/ppp.c
parentaff9450a3b95e848f761533a4c659269477a2fd4 (diff)
downloadaccel-ppp-64c36cc7dc0beac13c715bb5dedc697861c1badf.tar.gz
accel-ppp-64c36cc7dc0beac13c715bb5dedc697861c1badf.zip
pppd_compat: use EV_PPP_PRE_FINISHED event to start ip-down script (fixes unexpected radattr file removal)
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r--accel-pppd/ppp/ppp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index 3ab71662..4f3beb9e 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -202,6 +202,8 @@ exit_close_chan:
static void destablish_ppp(struct ppp_t *ppp)
{
+ triton_event_fire(EV_PPP_PRE_FINISHED, ppp);
+
pthread_rwlock_wrlock(&ppp_lock);
list_del(&ppp->entry);
pthread_rwlock_unlock(&ppp_lock);