From b0b98d523036d534755bf1cf79d1595e61c3f7ce Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 5 May 2018 21:01:00 +0200 Subject: patch 8.0.1795: lose contact with jobs when :gui forks Problem: Lose contact with jobs when :gui forks. Solution: Don't fork when there is a running job. Make log message for a died job clearer. Also close the terminal when stderr and stdout are the same FD. --- src/gui.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui.h') diff --git a/src/gui.h b/src/gui.h index b63125b9b4..13c97e61bd 100644 --- a/src/gui.h +++ b/src/gui.h @@ -564,3 +564,7 @@ typedef enum # define FUNC2GENERIC(func) G_CALLBACK(func) # endif #endif /* FEAT_GUI_GTK */ + +#if defined(UNIX) && !defined(FEAT_GUI_MAC) +# define GUI_MAY_FORK +#endif -- cgit v1.2.3