diff options
| author | phintuka <phintuka> | 2011-11-13 09:51:44 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2011-11-13 09:51:44 +0000 |
| commit | a59beddc562d0c83108c72a98c492f504e8912e8 (patch) | |
| tree | 4c47200051bd60f6ba451ac67ac3111778685024 | |
| parent | cd0a68be7fe81b6ac4f54cbcc76319187cec0439 (diff) | |
| download | xineliboutput-a59beddc562d0c83108c72a98c492f504e8912e8.tar.gz xineliboutput-a59beddc562d0c83108c72a98c492f504e8912e8.tar.bz2 | |
Log message when system() fails
| -rw-r--r-- | xine_frontend_kbd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xine_frontend_kbd.c b/xine_frontend_kbd.c index c750d08f..a20af17d 100644 --- a/xine_frontend_kbd.c +++ b/xine_frontend_kbd.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_kbd.c,v 1.1 2011-01-23 19:42:08 phintuka Exp $ + * $Id: xine_frontend_kbd.c,v 1.2 2011-11-13 09:51:44 phintuka Exp $ * */ @@ -157,6 +157,8 @@ static void kbd_receiver_thread_cleanup(void *arg) int status; tcsetattr(STDIN_FILENO, TCSANOW, &saved_tm); status = system("setterm -cursor on"); + if (status < 0) + LOGMSG("system(\"setterm -cursor on\") failed\n"); LOGMSG("Keyboard thread terminated"); } @@ -168,7 +170,11 @@ static void *kbd_receiver_thread(void *fe_gen) int status; status = system("setterm -cursor off"); + if (status < 0) + LOGMSG("system(\"setterm -cursor off\") failed\n"); status = system("setterm -blank off"); + if (status < 0) + LOGMSG("system(\"setterm -blank off\") failed\n"); /* Set stdin to deliver keypresses without buffering whole lines */ tcgetattr(STDIN_FILENO, &saved_tm); |
