mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed saving terminal settings when running in background
This commit is contained in:
parent
2fc5e35eb9
commit
cb0b4768ad
@ -2497,3 +2497,6 @@ Timothy D. Lenz <tlenz@vorgon.com>
|
|||||||
|
|
||||||
Valdemaras Pipiras <valdemaras@ambernet.lt>
|
Valdemaras Pipiras <valdemaras@ambernet.lt>
|
||||||
for translating OSD texts to the Lithuanian language
|
for translating OSD texts to the Lithuanian language
|
||||||
|
|
||||||
|
Manuel Reimer <Manuel.Reimer@gmx.de>
|
||||||
|
for fixing saving terminal settings when running in background
|
||||||
|
2
HISTORY
2
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
|
- 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
|
the DVB API version number is increased (the API claims to always be backward
|
||||||
compatible).
|
compatible).
|
||||||
|
- Fixed saving terminal settings when running in background (thanks to Manuel
|
||||||
|
Reimer).
|
||||||
|
3
vdr.c
3
vdr.c
@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
* The project's page is at http://www.tvdr.de
|
* 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>
|
#include <getopt.h>
|
||||||
@ -507,6 +507,7 @@ int main(int argc, char *argv[])
|
|||||||
stdout = freopen(Terminal, "w", stdout);
|
stdout = freopen(Terminal, "w", stdout);
|
||||||
stderr = freopen(Terminal, "w", stderr);
|
stderr = freopen(Terminal, "w", stderr);
|
||||||
HasStdin = true;
|
HasStdin = true;
|
||||||
|
tcgetattr(STDIN_FILENO, &savedTm);
|
||||||
}
|
}
|
||||||
|
|
||||||
isyslog("VDR version %s started", VDRVERSION);
|
isyslog("VDR version %s started", VDRVERSION);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user