Commit 00e7a89
committed
Cygwin: pty: Return EMFILE when too meny ptmx are opened
Previously, opening /dev/ptmx fails without setting errno when it
is opened too many times. With this patch, return EMFILE in that
situation.
Addresses: https://cygwin.com/pipermail/cygwin/2025-March/257786.html
Fixes: 09738c3 ("Cygwin: pty: setup new pty on opening the master, not in constructor")
Reported-by: Christian Franke <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>
(cherry picked from commit 7fc7d8b)1 parent 05387dd commit 00e7a89
3 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
| 1936 | + | |
| 1937 | + | |
1936 | 1938 | | |
| 1939 | + | |
1937 | 1940 | | |
1938 | 1941 | | |
1939 | 1942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
0 commit comments