musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/pty.c')
-rw-r--r--src/misc/pty.c 4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc/pty.c b/src/misc/pty.c
index b9cb5eaa..a0577147 100644
--- a/src/misc/pty.c
+++ b/src/misc/pty.c
@@ -7,7 +7,9 @@
int posix_openpt(int flags)
{
- return open("/dev/ptmx", flags);
+ int r = open("/dev/ptmx", flags);
+ if (r < 0 && errno == ENOSPC) errno = EAGAIN;
+ return r;
}
int grantpt(int fd)
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月06日 09:25:27 +0000

AltStyle によって変換されたページ (->オリジナル) /