04a6270058
Convert os.getpid() to a string before writing it to the pid file in order to avoid generating an empty pid file.