Improved keyboard detection

This commit is contained in:
Klaus Schmidinger 2003-02-15 15:46:19 +01:00
parent 69e9a07f8b
commit 33c8ad925a
3 changed files with 4 additions and 2 deletions

View File

@ -217,6 +217,7 @@ Werner Fink <werner@suse.de>
contains Dolby Digital data contains Dolby Digital data
for improving thread locking in the ring buffer to avoid possible race conditions for improving thread locking in the ring buffer to avoid possible race conditions
under heavy load under heavy load
for improving keyboard detection
Rolf Hakenes <hakenes@hippomi.de> Rolf Hakenes <hakenes@hippomi.de>
for providing 'libdtv' and adapting the EIT mechanisms to it for providing 'libdtv' and adapting the EIT mechanisms to it

View File

@ -1965,3 +1965,4 @@ Video Disk Recorder Revision History
- Now polling the output device in 'Transfer Mode' and retrying to put packets - Now polling the output device in 'Transfer Mode' and retrying to put packets
into the ring buffer. into the ring buffer.
- Resetting the CAM slot in case communication breaks down. - Resetting the CAM slot in case communication breaks down.
- Improved keyboard detection (thanks to Werner Fink).

4
vdr.c
View File

@ -22,7 +22,7 @@
* *
* The project's page is at http://www.cadsoft.de/people/kls/vdr * The project's page is at http://www.cadsoft.de/people/kls/vdr
* *
* $Id: vdr.c 1.143 2003/02/09 13:13:42 kls Exp $ * $Id: vdr.c 1.144 2003/02/15 15:36:01 kls Exp $
*/ */
#include <getopt.h> #include <getopt.h>
@ -81,7 +81,7 @@ int main(int argc, char *argv[])
// Save terminal settings: // Save terminal settings:
struct termios savedTm; struct termios savedTm;
bool HasStdin = tcgetpgrp(STDIN_FILENO) == getpid() && tcgetattr(STDIN_FILENO, &savedTm) == 0; bool HasStdin = (tcgetpgrp(STDIN_FILENO) == getpid() || getppid() != (pid_t)1) && tcgetattr(STDIN_FILENO, &savedTm) == 0;
// Initiate locale: // Initiate locale: