]> git.pld-linux.org Git - packages/mksh.git/blob - mksh-tty_close.patch
7715503528b550bab04f7b49170c6971294a406a
[packages/mksh.git] / mksh-tty_close.patch
1 commit 04ac6ad16336a70603c4817d678f9a1eddd18c74
2 Author: tg <tg>
3 Date:   Sun Mar 25 14:28:11 2012 +0000
4
5     fix regression w.r.t. TTY and external programmes:
6     • release the TTY after the initial change_winsz()
7     • since we release it, we can skip initialising tty_state, too
8
9 diff --git a/main.c b/main.c
10 index 8022782..0405b1b 100644
11 --- a/main.c
12 +++ b/main.c
13 @@ -252,8 +252,9 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
14  
15  #ifdef TIOCGWINSZ
16         /* try to initialise tty size before importing environment */
17 -       tty_init(true, false);
18 +       tty_init(false, false);
19         change_winsz();
20 +       tty_close();
21  #endif
22  
23  #ifdef _PATH_DEFPATH
This page took 0.057419 seconds and 2 git commands to generate.