From 6fc37863a0adbc282c925b615a76a1ee5c878077 Mon Sep 17 00:00:00 2001 From: Scott Moeller Date: Tue, 5 Mar 2013 22:30:34 -0800 Subject: [PATCH] curvetun: Added graceful handling of SIGTERM signal This allows friendlier termination of the curvetun daemon, using kill -9 gets a little harsh (and leaves lock files lying around). --- curvetun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/curvetun.c b/curvetun.c index e81debec..451cd504 100644 --- a/curvetun.c +++ b/curvetun.c @@ -91,6 +91,9 @@ static void signal_handler(int number) case SIGINT: sigint = 1; break; + case SIGTERM: + sigint = 1; + break; default: break; } -- 2.11.4.GIT