-- 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: 7c43c8c701d96deeabb712ae0aea59bcc31934c8:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 7c43c8c701d96deeabb712ae0aea59bcc31934c8
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Tue Dec 20 02:52:39 2011 +0000

    Set the pty fd non-blocking also when it is initialized using ptytty::get.

diff --git a/src/init.C b/src/init.C

index c2c3c3cca36b89b1b685bc4f4b52a5f8de236f24..

index ..d8ddff9c77336fd5dd55bf1ec623e54fc3f8160d 100644

--- a/src/init.C
+++ b/src/init.C
@@ -1609,7 +1609,7 @@ rxvt_term::run_command (const char *const *argv)
           if (getfd_hook)
             pty->pty = (*getfd_hook) (pty->pty);

-          if (pty->pty < 0 || fcntl (pty->pty, F_SETFL, O_NONBLOCK))
+          if (pty->pty < 0)
             rxvt_fatal ("unusable pty-fd filehandle, aborting.\n");
         }
     }
@@ -1618,6 +1618,8 @@ rxvt_term::run_command (const char *const *argv)
     if (!pty->get ())
       rxvt_fatal ("can't initialize pseudo-tty, aborting.\n");

+  fcntl (pty->pty, F_SETFL, O_NONBLOCK);
+
   struct termios tio = def_tio;

 #ifndef NO_BACKSPACE_KEY

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:05:33 2024