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

[tor-commits] [ooni-probe/master] Stop reactor when we can't start the sniffer.



commit 59d6fad8a19dd6f3a971c84474e977a886221129
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Fri May 17 20:04:21 2013 +0200

    Stop reactor when we can't start the sniffer.
---
 ooni/director.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ooni/director.py b/ooni/director.py
index 1a3bfc1..809eae4 100644
--- a/ooni/director.py
+++ b/ooni/director.py
@@ -221,6 +221,7 @@ class Director(object):
         except errors.InsufficientPrivileges:
             print "[!] Includepcap options requires root priviledges to run"
             print "    you should run ooniprobe as root or disable the options in ooniprobe.conf"
+            reactor.stop()
             sys.exit(1)
 
         print "Starting sniffer"

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