-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: b880c7fd3fb19438fd22dc71a702978428eb0f7c: path_to: revision_to:
commit b880c7fd3fb19438fd22dc71a702978428eb0f7c Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Tue Jun 26 00:40:28 2007 +0000 *** empty log message *** diff --git a/src/ptytty.C b/src/ptytty.C
--- a/src/ptytty.C +++ b/src/ptytty.C @@ -65,7 +65,7 @@ * GET PSEUDO TELETYPE - MASTER AND SLAVE * * ------------------------------------------------------------------------- */ /* - * Returns pty file descriptor, or -1 on failure + * Returns pty file descriptor, or -1 on failure * If successful, ttydev is set to the name of the slave device. * fd_tty _may_ also be set to an open fd to the slave device */ @@ -107,7 +107,7 @@ int pfd; int res; char tty_name[32]; - + res = openpty (&pfd, fd_tty, tty_name, NULL, NULL); if (res != -1) @@ -208,7 +208,7 @@ /*----------------------------------------------------------------------*/ /* - * Returns tty file descriptor, or -1 on failure + * Returns tty file descriptor, or -1 on failure */ static int get_tty (char *ttydev) @@ -253,7 +253,13 @@ control_tty (int fd_tty) } #endif +#ifdef TIOCSCTTY ioctl (fd_tty, TIOCSCTTY, NULL); +#else + fd = open (name, O_RDWR); + if (fd >= 0) + close (fd); +#endif int fd = open ("/dev/tty", O_WRONLY); if (fd < 0)
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 13:23:58 2024