summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/marker/utils/syncdaemon/gsyncd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py
index 5a9ead66579..4d8b9f96dab 100644
--- a/xlators/features/marker/utils/syncdaemon/gsyncd.py
+++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py
@@ -139,9 +139,11 @@ def main():
if exc != SystemExit:
logging.exception("FAIL: ")
sys.stderr.write("failed with %s.\n" % exc.__name__)
- exit(1)
+ sys.exit(1)
finally:
finalize()
+ # force exit in non-main thread too
+ os._exit(1)
def main_i():
rconf = {'go_daemon': 'should'}