diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-25 20:56:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-25 20:56:01 +0100 |
commit | 923d926d57d985ec8965da9d0cd3634e6b24bfe1 (patch) | |
tree | 496d29c88df1994bf6aa50b51027830a922d424c /src/os_unix.c | |
parent | 265f64efcf8df61cfbc93bbe103018dcfc5836e4 (diff) | |
download | vim-git-923d926d57d985ec8965da9d0cd3634e6b24bfe1.tar.gz |
patch 7.4.1418v7.4.1418
Problem: job_stop() on MS-Windows does not really stop the job.
Solution: Make the default to stop the job forcefully. (Ken Takata)
Make MS-Windows and Unix more similar.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index cebef645c..3c0b48c35 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5202,12 +5202,14 @@ mch_stop_job(job_T *job, char_u *how) int sig = -1; pid_t job_pid; - if (STRCMP(how, "hup") == 0) - sig = SIGHUP; - else if (*how == NUL || STRCMP(how, "term") == 0) + if (*how == NUL || STRCMP(how, "term") == 0) sig = SIGTERM; + else if (STRCMP(how, "hup") == 0) + sig = SIGHUP; else if (STRCMP(how, "quit") == 0) sig = SIGQUIT; + else if (STRCMP(how, "int") == 0) + sig = SIGINT; else if (STRCMP(how, "kill") == 0) sig = SIGKILL; else if (isdigit(*how)) |