summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/marker/utils/syncdaemon/gsyncd.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py
index ba3141f6651..e34a6bcb233 100644
--- a/xlators/features/marker/utils/syncdaemon/gsyncd.py
+++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py
@@ -153,6 +153,7 @@ def main():
# but this handler neither does
# signal.signal(signal.SIGTERM, finalize)
GLogger.setup()
+ exval = 0
try:
try:
main_i()
@@ -161,11 +162,12 @@ def main():
if exc != SystemExit:
logging.exception("FAIL: ")
sys.stderr.write("failed with %s.\n" % exc.__name__)
- sys.exit(1)
+ exval = 1
+ sys.exit(exval)
finally:
finalize()
# force exit in non-main thread too
- os._exit(1)
+ os._exit(exval)
def main_i():
rconf = {'go_daemon': 'should'}