aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-05-11 21:15:07 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-05-11 21:15:07 +0200
commitba5e8ebe9ab19ea8d69fd081946968cded0eba72 (patch)
tree51c7de96a2cd194350989750243ad80686780c57 /src
parent4aa911f0dcc0f3e4c159d92598d42bb16e29e02e (diff)
downloadnissy-classic-ba5e8ebe9ab19ea8d69fd081946968cded0eba72.tar.gz
nissy-classic-ba5e8ebe9ab19ea8d69fd081946968cded0eba72.zip
Flush stdout on batch mode and -i scrambles
Diffstat (limited to '')
-rw-r--r--src/shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index 654d1c8..ef89a15 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -90,6 +90,7 @@ exec_args(int c, char **v)
90 free_alg(scramble); 90 free_alg(scramble);
91 args->scramble = NULL; 91 args->scramble = NULL;
92 } 92 }
93 fflush(stdout);
93 } 94 }
94 } else { 95 } else {
95 cmd->exec(args); 96 cmd->exec(args);
@@ -132,6 +133,8 @@ launch(bool batchmode)
132 133
133 if (shell_argc > 0) 134 if (shell_argc > 0)
134 exec_args(shell_argc, shell_argv); 135 exec_args(shell_argc, shell_argv);
136
137 fflush(stdout);
135 } 138 }
136 139
137 for (i = 0; i < MAXNTOKENS; i++) 140 for (i = 0; i < MAXNTOKENS; i++)

Generated with cgit - Back to sebastiano.tronto.net