jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770125 )

Change subject: [IMPR] use os constants for os._exit
......................................................................

[IMPR] use os constants for os._exit

Change-Id: I8fb3a475a275ae7bb0817e9a5eeff57a00ac1c1b
---
M pywikibot/daemonize.py
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/daemonize.py b/pywikibot/daemonize.py
index 0cba456..6b433e8 100644
--- a/pywikibot/daemonize.py
+++ b/pywikibot/daemonize.py
@@ -1,6 +1,6 @@
 """Module to daemonize the current process on Unix."""
 #
-# (C) Pywikibot team, 2007-2021
+# (C) Pywikibot team, 2007-2022
 #
 # Distributed under the terms of the MIT license.
 #
@@ -56,10 +56,11 @@
             if chdir:
                 os.chdir('/')
             return
+
         # Write out the pid
         path = os.path.basename(sys.argv[0]) + '.pid'
         with codecs.open(path, 'w', 'utf-8') as f:
             f.write(str(pid))
     # Exit to return control to the terminal
     # os._exit to prevent the cleanup to run
-    os._exit(0)
+    os._exit(os.EX_OK)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770125
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8fb3a475a275ae7bb0817e9a5eeff57a00ac1c1b
Gerrit-Change-Number: 770125
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to