gnome-terminal r3377 - trunk/src



Author: chpe
Date: Thu Mar 19 13:48:42 2009
New Revision: 3377
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3377&view=rev

Log:
Bug 575184 â gnome-terminal fails to get current working directory on Solaris

Modified:
   trunk/src/terminal-screen.c

Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c	(original)
+++ trunk/src/terminal-screen.c	Thu Mar 19 13:48:42 2009
@@ -1754,6 +1754,11 @@
 
   /* Get the foreground process ID */
   fgpid = tcgetpgrp (priv->pty_fd);
+
+  /* If that didn't work, try falling back to the primary child. See bug #575184. */
+  if (fgpid == -1)
+    fgpid = priv->child_pid;
+
   if (fgpid == -1)
     return g_strdup (priv->initial_working_directory);
 



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