diff options
author | Joel Rivera <rivera@joel.mx> | 2013-09-11 14:47:09 -0500 |
---|---|---|
committer | Joel Rivera <rivera@joel.mx> | 2013-09-11 14:47:09 -0500 |
commit | 408e90fb4eac6c4dd65a85df9f56dcb3ccd237ff (patch) | |
tree | 4cdea29affdbf639f7baa33297010089a3e68cea /cherrypy/process/plugins.py | |
parent | 90828ec4eddc35a8a4a66fb31092b700019f9a2f (diff) | |
download | cherrypy-git-408e90fb4eac6c4dd65a85df9f56dcb3ccd237ff.tar.gz |
Add an ending new line to the pid file of the PIDFile plugin,
this is by convention and some arguments that are discussed
here http://stackoverflow.com/q/729692/298371.
Closing issue #1116
Diffstat (limited to 'cherrypy/process/plugins.py')
-rw-r--r-- | cherrypy/process/plugins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py index 621a88f5..99bf9005 100644 --- a/cherrypy/process/plugins.py +++ b/cherrypy/process/plugins.py @@ -406,7 +406,7 @@ class PIDFile(SimplePlugin): if self.finalized: self.bus.log('PID %r already written to %r.' % (pid, self.pidfile)) else: - open(self.pidfile, "wb").write(ntob("%s" % pid, 'utf8')) + open(self.pidfile, "wb").write(ntob("%s\n" % pid, 'utf8')) self.bus.log('PID %r written to %r.' % (pid, self.pidfile)) self.finalized = True start.priority = 70 |