Skip to content

Commit

Permalink
Fix airflow db shell needing an extra keypress to exit (#35982)
Browse files Browse the repository at this point in the history
  • Loading branch information
renzepost committed Nov 30, 2023
1 parent 20db3db commit cbb9c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/utils/process_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def execute_interactive(cmd: list[str], **kwargs) -> None:
# ignore SIGINT in the parent process
signal.signal(signal.SIGINT, signal.SIG_IGN)
while proc.poll() is None:
readable_fbs, _, _ = select.select([sys.stdin, primary_fd], [], [])
readable_fbs, _, _ = select.select([sys.stdin, primary_fd], [], [], 0)
if sys.stdin in readable_fbs:
input_data = os.read(sys.stdin.fileno(), 10240)
os.write(primary_fd, input_data)
Expand Down

0 comments on commit cbb9c4f

Please sign in to comment.