Permalink
Browse files

Flush stdout after printing "Opened a new pty:" message

Allows usage of reptry in scripts and other programs
  • Loading branch information...
1 parent 15ce48b commit bfc86cdb7eea7761c5a37064023e675820a95174 @vi committed Aug 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 reptyr.c
View
@@ -245,6 +245,7 @@ int main(int argc, char **argv) {
}
} else {
printf("Opened a new pty: %s\n", ptsname(pty));
+ fflush(stdout);
}
setup_raw(&saved_termios);

0 comments on commit bfc86cd

Please sign in to comment.