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 44f3259 commit 12513dfcce8c30539f71393d758792cdae52ccae @vi vi committed with Aug 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 reptyr.c
View
1 reptyr.c
@@ -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 12513df

Please sign in to comment.