17 lines
623 B
Plaintext
17 lines
623 B
Plaintext
$OpenBSD: patch-src_pty_c,v 1.12 2012/12/07 15:18:38 ajacoutot Exp $
|
|
--- src/pty.c.orig Tue Aug 16 23:52:48 2011
|
|
+++ src/pty.c Tue Dec 4 09:38:06 2012
|
|
@@ -816,11 +816,7 @@ _vte_pty_getpt(GError **error)
|
|
/* Call the system's function for allocating a pty. */
|
|
fd = getpt();
|
|
#else
|
|
- /* Try to allocate a pty by accessing the pty master multiplex. */
|
|
- fd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
|
|
- if ((fd == -1) && (errno == ENOENT)) {
|
|
- fd = open("/dev/ptc", O_RDWR | O_NOCTTY); /* AIX */
|
|
- }
|
|
+ fd = posix_openpt(O_RDWR | O_NOCTTY);
|
|
#endif
|
|
if (fd == -1) {
|
|
g_set_error (error, VTE_PTY_ERROR,
|