Mercurial > vim
diff src/main.c @ 36:125e80798a85 v7.0021
updated for version 7.0021
author | vimboss |
---|---|
date | Thu, 09 Dec 2004 21:34:53 +0000 |
parents | 7f788cd27415 |
children | 410fa1a31baf |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -2228,6 +2228,12 @@ main_loop(cmdwin) getout_preserve_modified(exitval) int exitval; { +#if defined(UNIX) + /* Ignore SIGHUP, because a dropped connection may make Vim exit and then + * get a SIGHUP while exiting, which causes various reentrent problems. */ + signal(SIGHUP, SIG_IGN); +#endif + ml_close_notmod(); /* close all not-modified buffers */ ml_sync_all(FALSE, FALSE); /* preserve all swap files */ ml_close_all(FALSE); /* close all memfiles, without deleting */