Lines Matching refs:G_interactive_fd
869 # define G_interactive_fd (G.interactive_fd) macro
871 # define G_interactive_fd 0
1392 if (!G_interactive_fd) { in die_if_script()
2027 tcsetpgrp(G_interactive_fd, G_saved_tty_pgrp); in sigexit()
2726 if (G_interactive_fd && i->file == G.HFILE_stdin) { in fgetc_interactive()
6651 if (G_interactive_fd) in expand_one_var()
7878 && fd == G_interactive_fd in save_fd_on_redirect()
7881 G_interactive_fd = xdup_CLOEXEC_and_close(G_interactive_fd, avoid_fd); in save_fd_on_redirect()
7882 …ug_printf_redir("redirect_fd %d: matches interactive_fd, moving it to %d\n", fd, G_interactive_fd); in save_fd_on_redirect()
7982 if (G_interactive_fd) in close_saved_fds_and_FILE_fds()
7983 close(G_interactive_fd); in close_saved_fds_and_FILE_fds()
7993 if (fd == G_interactive_fd) in internally_opened_fd()
8864 if (G_interactive_fd) in insert_job_into_table()
8960 if (G_interactive_fd) { in process_wait_result()
9005 if (G_interactive_fd) { in process_wait_result()
9147 tcsetpgrp(G_interactive_fd, p); in checkjobs_and_fg_shell()
9563 if (G.run_list_level == 1 && G_interactive_fd) { in run_pipe()
9574 tcsetpgrp(G_interactive_fd, pgrp); in run_pipe()
9899 if (G_interactive_fd) in run_list()
9967 if (G.run_list_level == 1 && G_interactive_fd) { in run_list()
10079 if (sig == SIGHUP && G_interactive_fd) in install_sighandlers()
10102 if (G_interactive_fd) { in install_special_sighandlers()
10154 if (!G_interactive_fd) in set_mode()
10597 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, 254); in hush_main()
10598 if (G_interactive_fd < 0) { in hush_main()
10600 G_interactive_fd = dup(STDIN_FILENO); in hush_main()
10601 if (G_interactive_fd < 0) { in hush_main()
10603 G_interactive_fd = 0; in hush_main()
10608 debug_printf("interactive_fd:%d\n", G_interactive_fd); in hush_main()
10609 if (G_interactive_fd) { in hush_main()
10610 close_on_exec_on(G_interactive_fd); in hush_main()
10620 G_saved_tty_pgrp = tcgetpgrp(G_interactive_fd); in hush_main()
10638 tcsetpgrp(G_interactive_fd, cached_getpid); in hush_main()
10674 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, 254); in hush_main()
10675 if (G_interactive_fd < 0) { in hush_main()
10677 G_interactive_fd = dup_CLOEXEC(STDIN_FILENO, -1); in hush_main()
10678 if (G_interactive_fd < 0) in hush_main()
10680 G_interactive_fd = 0; in hush_main()
10683 if (G_interactive_fd) { in hush_main()
10684 close_on_exec_on(G_interactive_fd); in hush_main()
10696 if (G_interactive_fd) { in hush_main()
10873 tcsetpgrp(G_interactive_fd, G_saved_tty_pgrp); in builtin_exec()
11737 if (!G_interactive_fd) in builtin_fg_bg()
11759 tcsetpgrp(G_interactive_fd, pi->pgrp); in builtin_fg_bg()
11830 n = G_interactive_fd ? 1 : pi->num_cmds; in builtin_kill()
11833 if (G_interactive_fd) in builtin_kill()