diff options
author | Linus Nordberg <linus@torproject.org> | 2013-06-05 15:48:57 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2013-06-18 13:15:04 +0200 |
commit | acb1aa3c2987eab96f86df87c26ddeaa7c646d45 (patch) | |
tree | 7e1adc73102444a2008d70fd786dfc648631447d | |
parent | dc66b42be6a19cb5bb31ee1108c7d8a3c769491a (diff) | |
download | chutney-acb1aa3c2987eab96f86df87c26ddeaa7c646d45.tar chutney-acb1aa3c2987eab96f86df87c26ddeaa7c646d45.tar.gz |
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).
-rw-r--r-- | lib/chutney/Traffic.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |