# HG changeset patch # User Christian Brabandt # Date 1502462704 -7200 # Node ID 85f0f557661e34a15d9d4d81556a9b117968aadf # Parent a6237fdb8469e0e0b385eda261b978d435701285 patch 8.0.0899: function name mch_stop_job() is confusing commit https://github.com/vim/vim/commit/2d33e90f81334eee34275a259444434abf56250f Author: Bram Moolenaar Date: Fri Aug 11 16:31:54 2017 +0200 patch 8.0.0899: function name mch_stop_job() is confusing Problem: Function name mch_stop_job() is confusing. Solution: Rename to mch_signal_job(). diff --git a/src/channel.c b/src/channel.c --- a/src/channel.c +++ b/src/channel.c @@ -4844,7 +4844,7 @@ job_stop_on_exit(void) for (job = first_job; job != NULL; job = job->jv_next) if (job->jv_status == JOB_STARTED && job->jv_stoponexit != NULL) - mch_stop_job(job, job->jv_stoponexit); + mch_signal_job(job, job->jv_stoponexit); } /* @@ -5191,7 +5191,7 @@ job_stop(job_T *job, typval_T *argvars, return 0; } ch_log(job->jv_channel, "Stopping job with '%s'", (char *)arg); - if (mch_stop_job(job, arg) == FAIL) + if (mch_signal_job(job, arg) == FAIL) return 0; /* Assume that only "kill" will kill the job. */ diff --git a/src/os_unix.c b/src/os_unix.c --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5557,7 +5557,7 @@ mch_detect_ended_job(job_T *job_list) * Return FAIL if "how" is not a valid name. */ int -mch_stop_job(job_T *job, char_u *how) +mch_signal_job(job_T *job, char_u *how) { int sig = -1; pid_t job_pid; diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -5248,7 +5248,7 @@ theend: * Return FAIL if it didn't work. */ int -mch_stop_job(job_T *job, char_u *how) +mch_signal_job(job_T *job, char_u *how) { int ret; diff --git a/src/proto/os_unix.pro b/src/proto/os_unix.pro --- a/src/proto/os_unix.pro +++ b/src/proto/os_unix.pro @@ -63,7 +63,7 @@ int mch_call_shell(char_u *cmd, int opti void mch_job_start(char **argv, job_T *job, jobopt_T *options); char *mch_job_status(job_T *job); job_T *mch_detect_ended_job(job_T *job_list); -int mch_stop_job(job_T *job, char_u *how); +int mch_signal_job(job_T *job, char_u *how); void mch_clear_job(job_T *job); void mch_breakcheck(int force); int mch_expandpath(garray_T *gap, char_u *path, int flags); diff --git a/src/proto/os_win32.pro b/src/proto/os_win32.pro --- a/src/proto/os_win32.pro +++ b/src/proto/os_win32.pro @@ -45,7 +45,7 @@ int mch_call_shell(char_u *cmd, int opti void mch_job_start(char *cmd, job_T *job, jobopt_T *options); char *mch_job_status(job_T *job); job_T *mch_detect_ended_job(job_T *job_list); -int mch_stop_job(job_T *job, char_u *how); +int mch_signal_job(job_T *job, char_u *how); void mch_clear_job(job_T *job); void mch_set_normal_colors(void); void mch_write(char_u *s, int len); diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -1143,7 +1143,7 @@ terminal_loop(void) /* We don't know if the job can handle CTRL-C itself or not, this * may kill the shell instead of killing the command running in the * shell. */ - mch_stop_job(curbuf->b_term->tl_job, (char_u *)"quit"); + mch_signal_job(curbuf->b_term->tl_job, (char_u *)"quit"); #endif if (c == (termkey == 0 ? Ctrl_W : termkey) || c == Ctrl_BSL) @@ -2735,7 +2735,7 @@ term_report_winsize(term_T *term, int ro break; } if (part < PART_COUNT && mch_report_winsize(fd, rows, cols) == OK) - mch_stop_job(term->tl_job, (char_u *)"winch"); + mch_signal_job(term->tl_job, (char_u *)"winch"); } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 899, +/**/ 898, /**/ 897,