[tor-commits] [chutney/master] Exit with 255 since that's more explicit.

nickm at torproject.org nickm at torproject.org
Mon Jun 24 17:08:21 UTC 2013


commit acb1aa3c2987eab96f86df87c26ddeaa7c646d45
Author: Linus Nordberg <linus at torproject.org>
Date:   Wed Jun 5 15:48:57 2013 +0200

    Exit with 255 since that's more explicit.
    
    Rationale behind exit(-1) is that it turns into highest available
    number which hopefully won't collide with a wrapping shell script
    trying to exit with different codes depending on error (like 1, 2, 3).
---
 lib/chutney/Traffic.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/chutney/Traffic.py b/lib/chutney/Traffic.py
index 694cd87..9b0a1f7 100644
--- a/lib/chutney/Traffic.py
+++ b/lib/chutney/Traffic.py
@@ -275,7 +275,7 @@ def main():
 
     if success:
         return 0
-    return -1
+    return 255
 
 if __name__ == '__main__':
     sys.exit(main())





More information about the tor-commits mailing list