[Xfce4-commits] [apps/xfce4-terminal] 01/01: Corrent foreground process check for async child spawn

noreply at xfce.org noreply at xfce.org
Thu Mar 22 17:48:03 CET 2018


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit cfe7e4944bf3000762d2bfe1dd39471abbe88d9c
Author: Igor <f2404 at yandex.ru>
Date:   Thu Mar 22 12:47:55 2018 -0400

    Corrent foreground process check for async child spawn
---
 terminal/terminal-screen.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index 6c04741..5706755 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -286,6 +286,7 @@ terminal_screen_init (TerminalScreen *screen)
   screen->working_directory = g_get_current_dir ();
   screen->dynamic_title_mode = TERMINAL_TITLE_DEFAULT;
   screen->session_id = ++screen_last_session_id;
+  screen->pid = -1;
 
   screen->terminal = g_object_new (TERMINAL_TYPE_WIDGET, NULL);
   g_signal_connect (G_OBJECT (screen->terminal), "child-exited",
@@ -2728,7 +2729,7 @@ terminal_screen_has_foreground_process (TerminalScreen *screen)
   int     fd;
   int     fgpid;
 
-  if (screen == NULL)
+  if (screen == NULL || screen->pid == -1)
     return FALSE;
 
   pty = vte_terminal_get_pty (VTE_TERMINAL (screen->terminal));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list