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

f2404 pushed a 
commit to branch 
master
in repository apps/xfce4-terminal.

commit cfe7e4944bf3000762d2bfe1dd39471abbe88d9c
Author: Igor <[email protected]>
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.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to