Commit 4c0fc56
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>1 parent 0d516c2 commit 4c0fc56
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1285 | 1289 | | |
1286 | 1290 | | |
1287 | 1291 | | |
| |||
1543 | 1547 | | |
1544 | 1548 | | |
1545 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
1546 | 1554 | | |
1547 | 1555 | | |
1548 | 1556 | | |
1549 | 1557 | | |
1550 | 1558 | | |
1551 | | - | |
| 1559 | + | |
1552 | 1560 | | |
1553 | 1561 | | |
1554 | | - | |
1555 | | - | |
| 1562 | + | |
| 1563 | + | |
1556 | 1564 | | |
1557 | | - | |
1558 | | - | |
| 1565 | + | |
| 1566 | + | |
1559 | 1567 | | |
1560 | 1568 | | |
1561 | 1569 | | |
| |||
4460 | 4468 | | |
4461 | 4469 | | |
4462 | 4470 | | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
4463 | 4483 | | |
4464 | 4484 | | |
4465 | 4485 | | |
| |||
0 commit comments