summaryrefslogtreecommitdiffstats
path: root/src/gui.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-05 21:01:00 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-05 21:01:00 +0200
commitb0b98d523036d534755bf1cf79d1595e61c3f7ce (patch)
tree5ca3b11d4f59557fbacfe202ec574664d2132bf2 /src/gui.h
parentb833c1ef7be1ed216a967dd7262473ec97084fa2 (diff)
patch 8.0.1795: lose contact with jobs when :gui forksv8.0.1795
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.
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h4
1 files changed, 4 insertions, 0 deletions
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