summaryrefslogtreecommitdiff
path: root/libutil/openpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/openpty.c')
-rw-r--r--libutil/openpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libutil/openpty.c b/libutil/openpty.c
index 9a65e56b1..5f58476e9 100644
--- a/libutil/openpty.c
+++ b/libutil/openpty.c
@@ -106,7 +106,7 @@ openpty (int *amaster, int *aslave, char *name, struct termios *termp,
#endif
int master, slave;
- master = getpt ();
+ master = posix_openpt (O_RDWR);
if (master == -1)
return -1;