diff options
author | 2015-07-20 02:34:57 -0700 | |
---|---|---|
committer | 2015-07-20 02:34:57 -0700 | |
commit | 08911e2dcc31a6d7acf4ba186d953cb85b0fa5c4 (patch) | |
tree | 5710716b21de73355cfed227310a967a917e8a97 /common.cpp | |
parent | dd4639e5dbf7838bbd2e1ba8b5a0f81eec2c2a89 (diff) |
Fix for miscellaneous issues identiifed by Coverity Scan
Diffstat (limited to 'common.cpp')
-rw-r--r-- | common.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2176,7 +2176,11 @@ void restore_term_foreground_process_group(void) { if (initial_foreground_process_group != -1) { - tcsetpgrp(STDIN_FILENO, initial_foreground_process_group); + /* This is called during shutdown and from a signal handler. We don't bother to complain on failure. */ + if (0 > tcsetpgrp(STDIN_FILENO, initial_foreground_process_group)) + { + /* Ignore failure */ + } } } |