From 501f07dd34676fe472620b2a8274a01f389f158a Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 28 Jul 2017 09:19:53 +0200 Subject: [PATCH] Setsid is not available on Windows - wrap an error handler around it --- src/bitmessagemain.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 50c138a2..4a7227e9 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -325,7 +325,11 @@ class Main: else: shared.thisapp.lock() # relock os.umask(0) - os.setsid() + try: + os.setsid() + except AttributeError: + # setsid not implemented + pass try: if os.fork(): exit(0)