Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: can't start vdr 1.1.19 in background
Andreas Hölscher wrote:
>
> Roetgen, Do 12.12.02 20:55
> Hi,
> since I upgraded from vdr 1.1.17 to 1.1.19 I can't start vdr in
> background.
> ...
Please apply the following patch to fix this:
--- vdr.c 2002/12/08 13:34:39 1.137
+++ vdr.c 2002/12/13 13:37:28
@@ -81,7 +81,7 @@
// Save terminal settings:
struct termios savedTm;
- tcgetattr(STDIN_FILENO, &savedTm);
+ bool HasStdin = tcgetpgrp(STDIN_FILENO) == getpid() && tcgetattr(STDIN_FILENO, &savedTm) == 0;
// Initiate locale:
@@ -386,7 +386,7 @@
new cLircRemote("/dev/lircd");
#endif
#if defined(REMOTE_KBD)
- if (!DaemonMode)
+ if (!DaemonMode && HasStdin)
new cKbdRemote;
#endif
Interface->LearnKeys();
@@ -724,7 +724,8 @@
isyslog("exiting");
if (SysLogLevel > 0)
closelog();
- tcsetattr(STDIN_FILENO, TCSANOW, &savedTm);
+ if (HasStdin)
+ tcsetattr(STDIN_FILENO, TCSANOW, &savedTm);
if (cThread::EmergencyExit()) {
esyslog("emergency exit!");
return 1;
Klaus
--
_______________________________________________________________
Klaus Schmidinger Phone: +49-8635-6989-10
CadSoft Computer GmbH Fax: +49-8635-6989-40
Hofmark 2 Email: kls@cadsoft.de
D-84568 Pleiskirchen, Germany URL: www.cadsoft.de
_______________________________________________________________
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index