Commit fa1e820
committed
Cygwin: pty: Do not transfer input to nat-pipe while masked
On the command "cat | non-cygwin-app", `cat` sometimes fails to read
key input. This happens when `cat` starts to read input before `non-
cygwin-app` configures pseudo console. This is because pipe state is
switched to nat-pipe when pseudo console is configured.
This patch prevent the pipe state from changing to nat-pipe state if
some cygwin process is reading input from the cyg-pipe.
Fixes: f206417 ("Cygwin: pty: Reduce unecessary input transfer.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Reviewed-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
(cherry picked from commit 4c0fc56)1 parent c313089 commit fa1e820
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
1001 | 1005 | | |
1002 | 1006 | | |
1003 | 1007 | | |
| |||
1255 | 1259 | | |
1256 | 1260 | | |
1257 | 1261 | | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1258 | 1266 | | |
1259 | 1267 | | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
1263 | | - | |
| 1271 | + | |
1264 | 1272 | | |
1265 | 1273 | | |
1266 | | - | |
1267 | | - | |
| 1274 | + | |
| 1275 | + | |
1268 | 1276 | | |
1269 | | - | |
1270 | | - | |
| 1277 | + | |
| 1278 | + | |
1271 | 1279 | | |
1272 | 1280 | | |
1273 | 1281 | | |
| |||
4120 | 4128 | | |
4121 | 4129 | | |
4122 | 4130 | | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
4123 | 4143 | | |
4124 | 4144 | | |
4125 | 4145 | | |
| |||
0 commit comments