midgetspy/Sick-Beard — pull request #765 by nate1280 (2013-10-22 19:27:09+00:00)
Title: Fix for log file handle remaining open on restarts

Close the log file prior to starting a new subprocess so the log file doesn't remain locked by previous instance.

I've had this issue for a long time in both source and exe builds with windows. I'm not sure if other OS's have the same problem or not.

To reproduce, just start SB, and restart it from within the UI. Using process explorer goto the python process for sickbeard and press Ctrl+L, you should see the log file listed twice, if its like this, the log file is locked still by the previous instance.