diff --git a/scrapy/command.py b/scrapy/command.py index ab8968440..62291a353 100644 --- a/scrapy/command.py +++ b/scrapy/command.py @@ -110,7 +110,7 @@ class ScrapyCommand(object): if opts.pidfile: with open(opts.pidfile, "w") as f: - f.write(str(os.getpid())) + f.write(str(os.getpid()) + os.linesep) def run(self, args, opts): """