John Vandenberg has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/191531

Change subject: Create file if it doesnt exist
......................................................................

Create file if it doesnt exist

Change-Id: I5c9a6afa2aaa9456c2302f9a6d7dc1e4ad12174f
---
M pywikibot/daemonize.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/31/191531/1

diff --git a/pywikibot/daemonize.py b/pywikibot/daemonize.py
index d0b5ae5..d8c050a 100644
--- a/pywikibot/daemonize.py
+++ b/pywikibot/daemonize.py
@@ -44,7 +44,8 @@
                 os.close(2)
                 os.open('/dev/null', os.O_RDWR)
                 if redirect_std:
-                    os.open(redirect_std, os.O_WRONLY | os.O_APPEND)
+                    os.open(redirect_std,
+                            os.O_WRONLY | os.O_APPEND | os.O_CREAT)
                 else:
                     os.dup2(0, 1)
                 os.dup2(1, 2)

-- 
To view, visit https://gerrit.wikimedia.org/r/191531
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c9a6afa2aaa9456c2302f9a6d7dc1e4ad12174f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to