Thanks for your reply,you are a nice man!<br>Wish your future reply. <br><br><br>chunshengster<br><br><br><div class="gmail_quote">On Sat, Mar 10, 2012 at 9:03 AM, Ben Finney <span dir="ltr"><<a href="mailto:ben%2Bpython@benfinney.id.au">ben+python@benfinney.id.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 08-Mar-2012, 王春生 wrote:<br>
>     I am a user of python_dameon lib, I like this lib ,but I found the<br>
> daemon/runner.py in the lib have a bug (I think this is a bug):<br>
<br>
Thank you, I'm glad ‘python-daemon’ is useful for you.<br>
<br>
In case you are interested in the development of this library, you might<br>
like to join the development discussion forum at<br>
<URL:<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-daemon-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-daemon-devel</a>>.<br>
<br>
> On line 83-85:<br>
>         self.daemon_context.stdout = open(app.stdout_path, 'w+')<br>
>         self.daemon_context.stderr = open(<br>
>             app.stderr_path, 'w+', buffering=0)<br>
> I think it will be better if the open flag is 'a+' , do you think so?<br>
><br>
> Or when you restart the daemon script,the stdout and stderr log will be<br>
> lost!<br>
<br>
You have a good point. I will have a look soon to see whether that needs to<br>
change.<br>
<br>
Thank you for this bug report.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
 \       “A computer once beat me at chess, but it was no match for me |<br>
  `\                                     at kick boxing.” —Emo Philips |<br>
_o__)                                                                  |<br>
Ben Finney <<a href="mailto:ben@benfinney.id.au">ben@benfinney.id.au</a>><br>
</font></span></blockquote></div><br>