diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-16 18:47:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-16 18:47:20 +0100 |
commit | c72e31dfcc013ae840cd7f8899f2430b7f6812c9 (patch) | |
tree | 9c8aed4f3e53e7b224ad3849c55052ea744b11bd /src/gui.c | |
parent | a272624c763fea9f98510bbc5b1f2b65a309c765 (diff) |
patch 8.2.5113: timer becomes invalid after fork/exec, :gui gives errorsv8.2.5113
Problem: Timer becomes invalid after fork/exec, :gui gives errors. (Gabriel
Dupras)
Solution: Delete the timer befor forking. (closes #10584)
Diffstat (limited to 'src/gui.c')
-rw-r--r-- | src/gui.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -226,6 +226,11 @@ gui_do_fork(void) int exit_status; pid_t pid = -1; +#if defined(FEAT_RELTIME) && defined(HAVE_TIMER_CREATE) + // a timer is not carried forward + delete_timer(); +#endif + // Setup a pipe between the child and the parent, so that the parent // knows when the child has done the setsid() call and is allowed to // exit. |