fix some trivial style problems

This commit is contained in:
Kurtis Rader
2017-05-17 23:07:47 -07:00
parent a5a9ca7d3b
commit d00ab4a326
3 changed files with 8 additions and 10 deletions

View File

@@ -1517,9 +1517,9 @@ static bool check_for_orphaned_process(unsigned long loop_count, pid_t shell_pgi
we_think_we_are_orphaned = true;
}
// Try reading from the tty; if we get EIO we are orphaned. This is sort of bad because it
// may block.
if (!we_think_we_are_orphaned && loop_count % 128 == 0) {
// Try reading from the tty; if we get EIO we are orphaned. This is sort of bad because it
// may block.
#ifdef HAVE_CTERMID_R
char buf[L_ctermid];
char *tty = ctermid_r(buf);