diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-03 10:20:41 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-03 10:20:41 +0100 |
commit | c01259dbb5cf56490de58d6021c9c2fd135d7c66 (patch) | |
tree | 2d850c3d97f7bcdab4f4acaa6a0576ad842a4f40 /vdr.c | |
parent | 86197f02060c594f0ec46a64b614215dcb5d28b6 (diff) | |
download | vdr-c01259dbb5cf56490de58d6021c9c2fd135d7c66.tar.gz vdr-c01259dbb5cf56490de58d6021c9c2fd135d7c66.tar.bz2 |
Fixed setting the main thread id if VDR is running as a daemon
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 1.224 2005/12/31 13:30:11 kls Exp $ + * $Id: vdr.c 1.225 2006/01/03 10:20:41 kls Exp $ */ #include <getopt.h> @@ -473,6 +473,9 @@ int main(int argc, char *argv[]) isyslog("VDR version %s started", VDRVERSION); if (StartedAsRoot) isyslog("switched to user '%s'", VdrUser); + if (DaemonMode) + dsyslog("running as daemon (tid=%d)", cThread::ThreadId()); + cThread::SetMainThreadId(); // Main program loop variables - need to be here to have them initialized before any EXIT(): |