0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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().
This commit is contained in:
Bram Moolenaar
2017-08-11 16:31:54 +02:00
parent e41e3b41f9
commit 2d33e90f81
7 changed files with 10 additions and 8 deletions

View File

@@ -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, char *type)
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. */