Delete the pidfile

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2007-02-07 16:15:35 +00:00
parent ffa02f1856
commit 75ba870109
2 changed files with 4 additions and 0 deletions

View File

@ -301,3 +301,6 @@
- feature: renamed fhz1000 to fhem
- feature: added HISTORY and README.DEV
- doc: Added description of attribute "model".
- bugfix: delete the pidfile when terminating. (reported by Martin and Peter)
- TODO: feature: add direction to the logs
- TODO: bugfix: more thorough serial line initialization

View File

@ -713,6 +713,7 @@ CommandShutdown($$)
my ($cl, $param) = @_;
Log 0, "Server shutdown";
DoSavefile();
unlink($pidfilename) if($pidfilename);
exit(0);
}