neovim/test/functional/autocmd
Justin M. Keyes 7fdb45e0f8 preserve_exit: Ignore SIGHUP
closes #9274
ref #9028

If stdin closed then read_error_exit calls preserve_exit. Handling
SIGHUP during preserve_exit would cause a premature teardown, and
conflicts with e.g. ui_bridge_stop which waits for TUI to teardown.

Vim ignores SIGHUP in its prepare_to_exit and getout_preserve_modified
routines:

    /* Ignore SIGHUP, because a dropped connection causes a read error, which
     * makes Vim exit and then handling SIGHUP causes various reentrance
     * problems. */
    signal(SIGHUP, SIG_IGN);
2018-11-27 01:14:55 +01:00
..
autocmd_spec.lua functests: Fix linter errors 2017-04-09 03:31:13 +03:00
bufenter_spec.lua window.c: do BufEnter in correct window after closing help #7431 2017-12-10 14:55:59 +01:00
cmdline_spec.lua msg: do not scroll entire screen (#8088) 2018-03-31 11:12:27 +02:00
dirchanged_spec.lua DirChanged: support <buffer> (#8140) 2018-03-16 07:29:20 +01:00
filetype_spec.lua vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times 2018-02-17 00:02:16 +05:30
tabclose_spec.lua api: change nvim_command_output behavior 2018-01-10 23:45:44 +01:00
tabnew_spec.lua Windows: enable more tests 2017-01-13 01:17:12 +01:00
tabnewentered_spec.lua api: change nvim_command_output behavior 2018-01-10 23:45:44 +01:00
termclose_spec.lua preserve_exit: Ignore SIGHUP 2018-11-27 01:14:55 +01:00
textyankpost_spec.lua functests: Fix linter errors 2017-04-09 03:31:13 +03:00