diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-06-02 11:37:56 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-06-02 11:37:56 +0400 |
commit | 2e56893233560dfc6b3ad12eb8f75f50cb4c930f (patch) | |
tree | dc7b20a8d9796befd55b9e324a8d5e0c7e34e551 /accel-pppd | |
parent | 57ae63fe326122dda596a9957526fbc82fad49e8 (diff) | |
download | accel-ppp-2e56893233560dfc6b3ad12eb8f75f50cb4c930f.tar.gz accel-ppp-2e56893233560dfc6b3ad12eb8f75f50cb4c930f.zip |
fdtrash: don't queue descriptors after context is closed (fix segfault when stopping accel-pppd)
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/fdtrash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/fdtrash.c b/accel-pppd/fdtrash.c index c43de8d5..218a0756 100644 --- a/accel-pppd/fdtrash.c +++ b/accel-pppd/fdtrash.c @@ -19,7 +19,8 @@ static void __close(void *arg) void __export fdtrash_add(long fd) { - triton_context_call(&ctx, (triton_event_func)__close, (void *)fd); + if (ctx.tpd) + triton_context_call(&ctx, (triton_event_func)__close, (void *)fd); } static void init() |