summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-10-25 14:49:19 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-10-25 14:49:19 +0100
commitcb0b4768ad8c868b26465db91ec6572c5feeab31 (patch)
treec2c9b1d2108c2c75ed1e1f164362b17e84b7597a
parent2fc5e35eb9dfac4e1156b2c70faad2f5e8cace06 (diff)
downloadvdr-cb0b4768ad8c868b26465db91ec6572c5feeab31.tar.gz
vdr-cb0b4768ad8c868b26465db91ec6572c5feeab31.tar.bz2
Fixed saving terminal settings when running in background
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY2
-rw-r--r--vdr.c3
3 files changed, 7 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 506d6ab2..f9a3f16a 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2497,3 +2497,6 @@ Timothy D. Lenz <tlenz@vorgon.com>
Valdemaras Pipiras <valdemaras@ambernet.lt>
for translating OSD texts to the Lithuanian language
+
+Manuel Reimer <Manuel.Reimer@gmx.de>
+ for fixing saving terminal settings when running in background
diff --git a/HISTORY b/HISTORY
index 6e4b1276..19a801bc 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6170,3 +6170,5 @@ Video Disk Recorder Revision History
- Only checking DVB_API_VERSION to be >=5 in order to stay compileable in case
the DVB API version number is increased (the API claims to always be backward
compatible).
+- Fixed saving terminal settings when running in background (thanks to Manuel
+ Reimer).
diff --git a/vdr.c b/vdr.c
index 933855c8..f03409ac 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.11 2009/10/18 14:09:22 kls Exp $
+ * $Id: vdr.c 2.12 2009/10/25 14:45:47 kls Exp $
*/
#include <getopt.h>
@@ -507,6 +507,7 @@ int main(int argc, char *argv[])
stdout = freopen(Terminal, "w", stdout);
stderr = freopen(Terminal, "w", stderr);
HasStdin = true;
+ tcgetattr(STDIN_FILENO, &savedTm);
}
isyslog("VDR version %s started", VDRVERSION);