diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | plugin.c | 10 | ||||
-rw-r--r-- | plugin.h | 4 | ||||
-rw-r--r-- | vdr.c | 4 |
4 files changed, 13 insertions, 7 deletions
@@ -4518,3 +4518,5 @@ Video Disk Recorder Revision History - Using geteuid() to check whether VDR is running as user 'root' (suggested by Tobias Grimm). - Added a missing "Key$" in skincurses.c (reported by Darren Salt). +- Reintroduced the log message "deleting plugin: ..." when shutting down VDR (upon + request by Ville Skyttä, as in the initial patch from Christoph Haubrich). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.c 1.18 2006/04/09 14:16:17 kls Exp $ + * $Id: plugin.c 1.19 2006/04/14 11:45:43 kls Exp $ */ #include "plugin.h" @@ -424,9 +424,13 @@ void cPluginManager::StopPlugins(void) } } -void cPluginManager::Shutdown(void) +void cPluginManager::Shutdown(bool Log) { cDll *dll; - while ((dll = dlls.Last()) != NULL) + while ((dll = dlls.Last()) != NULL) { + cPlugin *p = dll->Plugin(); + if (p && Log) + isyslog("deleting plugin: %s", p->Name()); dlls.Del(dll); + } } @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.h 1.10 2005/08/27 16:13:17 kls Exp $ + * $Id: plugin.h 1.11 2006/04/14 11:42:48 kls Exp $ */ #ifndef __PLUGIN_H @@ -95,7 +95,7 @@ public: static cPlugin *CallFirstService(const char *Id, void *Data = NULL); static bool CallAllServices(const char *Id, void *Data = NULL); void StopPlugins(void); - void Shutdown(void); + void Shutdown(bool Log = false); }; #endif //__PLUGIN_H @@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.255 2006/04/14 11:01:18 kls Exp $ + * $Id: vdr.c 1.256 2006/04/14 11:45:05 kls Exp $ */ #include <getopt.h> @@ -1179,7 +1179,7 @@ Exit: Setup.Save(); } cDevice::Shutdown(); - PluginManager.Shutdown(); + PluginManager.Shutdown(true); cSchedules::Cleanup(true); ReportEpgBugFixStats(); if (WatchdogTimeout > 0) |