jenkins-bot has submitted this change and it was merged.
Change subject: Create file if it doesn't exist in daemonize.py ......................................................................
Create file if it doesn't exist in daemonize.py
Change-Id: I5c9a6afa2aaa9456c2302f9a6d7dc1e4ad12174f --- M pywikibot/daemonize.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
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)
pywikibot-commits@lists.wikimedia.org