*** empty log message ***
authorroot <root>
Thu, 19 Jan 2006 16:43:36 +0000 (16:43 +0000)
committerroot <root>
Thu, 19 Jan 2006 16:43:36 +0000 (16:43 +0000)
src/ptytty.C

index 6040c43858a441bb2fac0e3c33aefd9785630c00..7734e8c4c75ba97bc9296b7d04e112e16fe8ce0c 100644 (file)
@@ -408,8 +408,11 @@ rxvt_ptytty_unix::put ()
   chmod (name, RESTORE_TTY_MODE);
   chown (name, 0, ttyconf.gid);
 
-  if (pty >= 0) close (pty);
   close_tty ();
+
+  if (pty >= 0)
+    close (pty);
+
   free (name);
 
   pty = tty = -1;
@@ -607,6 +610,7 @@ void rxvt_ptytty_server ()
       _exit (EXIT_SUCCESS);
     }
 }
+
 #endif
 
 // a "factory" *g*