2012-12-07 10:18:38 -05:00
|
|
|
$OpenBSD: patch-src_pty_c,v 1.12 2012/12/07 15:18:38 ajacoutot Exp $
|
2012-03-09 01:45:16 -05:00
|
|
|
--- src/pty.c.orig Tue Aug 16 23:52:48 2011
|
2012-12-07 10:18:38 -05:00
|
|
|
+++ 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();
|
2012-02-24 05:44:55 -05:00
|
|
|
#else
|
2012-12-07 10:18:38 -05:00
|
|
|
- /* 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,
|