mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.1231: asking about existing swap file unnecessarily
Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes #1237)
This commit is contained in:
@@ -2393,6 +2393,16 @@ mch_get_pid(void)
|
||||
return (long)getpid();
|
||||
}
|
||||
|
||||
/*
|
||||
* return TRUE if process "pid" is still running
|
||||
*/
|
||||
int
|
||||
mch_process_running(pid_t pid)
|
||||
{
|
||||
// EMX kill() not working correctly, it seems
|
||||
return kill(pid, 0) == 0;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_STRERROR) && defined(USE_GETCWD)
|
||||
static char *
|
||||
strerror(int err)
|
||||
|
Reference in New Issue
Block a user