diff options
author | Kozlov Dmitry <dima@server> | 2010-10-14 17:38:00 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-10-14 17:38:00 +0400 |
commit | f2cca0f357cebb8aedc43673809cae396a921c98 (patch) | |
tree | ab5950279a2b908c940652577bc51e25f36cc9dd /accel-pptpd/triton | |
parent | 719730c5021a365b585701d4534a37a9551d8395 (diff) | |
download | accel-ppp-f2cca0f357cebb8aedc43673809cae396a921c98.tar.gz accel-ppp-f2cca0f357cebb8aedc43673809cae396a921c98.zip |
radius: send Framed-IP-Address in Accounting-Request
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r-- | accel-pptpd/triton/mempool.c | 10 | ||||
-rw-r--r-- | accel-pptpd/triton/spinlock.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c index bd951b43..0ba4ebea 100644 --- a/accel-pptpd/triton/mempool.c +++ b/accel-pptpd/triton/mempool.c @@ -230,6 +230,14 @@ void sigclean(int num) static void __init init(void) { - signal(35, sigclean); + sigset_t set; + sigfillset(&set); + + struct sigaction sa = { + .sa_handler = sigclean, + .sa_mask = set, + }; + + sigaction(35, &sa, NULL); } diff --git a/accel-pptpd/triton/spinlock.h b/accel-pptpd/triton/spinlock.h index b13cde61..61f9b016 100644 --- a/accel-pptpd/triton/spinlock.h +++ b/accel-pptpd/triton/spinlock.h @@ -2,7 +2,7 @@ #define __TRITON_SPINLOCK_H #ifdef GCC_SPINLOCK -typedef volatile unsigned char spinlock_t; +typedef volatile unsigned int spinlock_t; #define spin_lock(l) {while(__sync_lock_test_and_set(l,1));} #define spin_unlock(l) __sync_lock_release(l) #define SPINLOCK_INITIALIZER 0 |