[vte] pty: Comment cleanup



commit e5803965891e6c22bd503b6a96c98097f6890ffd
Author: Christian Persch <chpe gnome org>
Date:   Sat Feb 13 13:33:18 2016 +0100

    pty: Comment cleanup

 src/pty.cc         |    6 ++----
 src/vteinternal.hh |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/pty.cc b/src/pty.cc
index d2ca55b..02a65b1 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -142,11 +142,10 @@ vte_pty_child_setup (VtePty *pty)
                 signal(n, SIG_DFL);
         }
 
-        int masterfd = priv->pty_fd;
+        auto masterfd = priv->pty_fd;
         if (masterfd == -1)
                 _exit(127);
 
-        /* Read the slave number and unlock it. */
         if (grantpt(masterfd) != 0) {
                 _vte_debug_print(VTE_DEBUG_PTY, "%s failed: %m", "grantpt");
                 _exit(127);
@@ -220,8 +219,7 @@ vte_pty_child_setup (VtePty *pty)
                }
        }
 
-       /* Close the original slave descriptor, unless it's one of the stdio
-        * descriptors. */
+       /* Close the original FD, unless it's one of the stdio descriptors */
        if (fd != STDIN_FILENO &&
                        fd != STDOUT_FILENO &&
                        fd != STDERR_FILENO) {
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index adbb853..99da6d4 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -302,7 +302,7 @@ public:
         guint m_pty_input_source;
         guint m_pty_output_source;
         gboolean m_pty_input_active;
-        GPid m_pty_pid;                        /* pid of child using pty slave */
+        GPid m_pty_pid;                        /* pid of child process */
         guint m_child_watch_source;
 
        /* Input data queues. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]