To: vim-dev@vim.org Subject: Patch 5.8.005 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.8.005 Problem: With the GTK GUI, when 'shell' is not a valid program, ":make" causes Vim to exit. Solution: In the forked process, use _exit() instead of exit() to avoid closing the connection to the X server. Files: src/os_unix.c *** ../vim-5.8.004/src/os_unix.c Fri Jun 15 19:59:13 2001 --- src/os_unix.c Wed Jun 27 17:16:17 2001 *************** *** 2454,2462 **** * There is no type cast for the argv, because the type may be * different on different machines. This may cause a warning * message with strict compilers, don't worry about it. */ execvp(argv[0], argv); ! exit(EXEC_FAILED); /* exec failed, return failure code */ } else /* parent */ { --- 2454,2464 ---- * There is no type cast for the argv, because the type may be * different on different machines. This may cause a warning * message with strict compilers, don't worry about it. + * Call _exit() instead of exit() to avoid closing the connection + * to the X server (esp. with GTK, which uses atexit()). */ execvp(argv[0], argv); ! _exit(EXEC_FAILED); /* exec failed, return failure code */ } else /* parent */ { *** ../vim-5.8.004/src/version.c Fri Jun 15 20:02:18 2001 --- src/version.c Wed Jun 27 17:19:07 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 5, /**/ -- hundred-and-one symptoms of being an internet addict: 2. You kiss your girlfriend's home page. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///