From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 22 Jan 2009 22:54:05 +0000 (-0700)
Subject: setup: make the bin/tahoe executable exit with the appropriate exit code
X-Git-Tag: allmydata-tahoe-1.3.0~160
X-Git-Url: https://git.rkrishnan.org/%5B/COPYING.TGPPL.html?a=commitdiff_plain;h=824edc438fb280106a144f913fd73a12e86217ae;p=tahoe-lafs%2Ftahoe-lafs.git

setup: make the bin/tahoe executable exit with the appropriate exit code
---

diff --git a/bin/tahoe b/bin/tahoe
index 7299407e..963abff0 100644
--- a/bin/tahoe
+++ b/bin/tahoe
@@ -48,7 +48,8 @@ if sys.platform == "win32":
 executable = os.path.join(base, "support", bin_dir, "tahoe")
 
 try:
-    subprocess.call([executable] + sys.argv[1:], env=os.environ)
+    res = subprocess.call([executable] + sys.argv[1:], env=os.environ)
+    sys.exit(res)
 except (OSError, IOError), le:
     if le.args[0] == errno.ENOENT:
         print whoami