Skip to content

Commit

Permalink
Wall: Fix terminal flag usage
Browse files Browse the repository at this point in the history
.
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Jun 6, 2024
1 parent 7519766 commit 41e7686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion term-utils/scriptreplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ setterm(struct termios *backup, int *saved_flag)
*saved_flag = fcntl(STDIN_FILENO, F_GETFL);
if (*saved_flag == -1)
err(EXIT_FAILURE, _("unexpected fcntl failure"));
fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK);
fcntl(STDIN_FILENO, F_SETFL, *saved_flag | O_NONBLOCK);

if (tcgetattr(STDOUT_FILENO, backup) != 0) {
if (errno != ENOTTY) /* For debugger. */
Expand Down

0 comments on commit 41e7686

Please sign in to comment.