More update code. almost there.

This commit is contained in:
kay.one 2011-11-13 12:31:02 -08:00
commit 883dffca80
8 changed files with 166 additions and 14 deletions

View file

@ -120,7 +120,7 @@ namespace NzbDrone.Core
{
try
{
var pid = Convert.ToInt32(Environment.GetEnvironmentVariable("NZBDRONE_PID"));
var pid = new EnviromentProvider().NzbDroneProcessIdFromEnviroment;
Logger.Debug("Attaching to parent process ({0}) for automatic termination.", pid);