[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [meek/master] Emit a log line for SIGTERM.



commit 3911f53558946e9f2904ba622941d59b0b542c2c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu May 1 08:17:13 2014 -0700

    Emit a log line for SIGTERM.
---
 meek-client/meek-client.go |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/meek-client/meek-client.go b/meek-client/meek-client.go
index f293b67..10aa597 100644
--- a/meek-client/meek-client.go
+++ b/meek-client/meek-client.go
@@ -307,7 +307,9 @@ func main() {
 		ln.Close()
 	}
 
+	log.Printf("got signal %s", sig)
 	if sig == syscall.SIGTERM {
+		log.Printf("done")
 		return
 	}
 
@@ -321,5 +323,6 @@ func main() {
 		}
 	}
 
+	log.Printf("got second signal %s", sig)
 	log.Printf("done")
 }

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits