comparison src/channel.c @ 12037:85f0f557661e v8.0.0899

patch 8.0.0899: function name mch_stop_job() is confusing commit https://github.com/vim/vim/commit/2d33e90f81334eee34275a259444434abf56250f Author: Bram Moolenaar <Bram@vim.org> 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().
author Christian Brabandt <cb@256bit.org>
date Fri, 11 Aug 2017 16:45:04 +0200
parents 810480f1ecbf
children 2796a2c9fc17
comparison
equal deleted inserted replaced
12036:a6237fdb8469 12037:85f0f557661e
4842 { 4842 {
4843 job_T *job; 4843 job_T *job;
4844 4844
4845 for (job = first_job; job != NULL; job = job->jv_next) 4845 for (job = first_job; job != NULL; job = job->jv_next)
4846 if (job->jv_status == JOB_STARTED && job->jv_stoponexit != NULL) 4846 if (job->jv_status == JOB_STARTED && job->jv_stoponexit != NULL)
4847 mch_stop_job(job, job->jv_stoponexit); 4847 mch_signal_job(job, job->jv_stoponexit);
4848 } 4848 }
4849 4849
4850 /* 4850 /*
4851 * Return TRUE when there is any job that has an exit callback and might exit, 4851 * Return TRUE when there is any job that has an exit callback and might exit,
4852 * which means job_check_ended() should be called more often. 4852 * which means job_check_ended() should be called more often.
5189 { 5189 {
5190 ch_log(job->jv_channel, "Job has already ended, job_stop() skipped"); 5190 ch_log(job->jv_channel, "Job has already ended, job_stop() skipped");
5191 return 0; 5191 return 0;
5192 } 5192 }
5193 ch_log(job->jv_channel, "Stopping job with '%s'", (char *)arg); 5193 ch_log(job->jv_channel, "Stopping job with '%s'", (char *)arg);
5194 if (mch_stop_job(job, arg) == FAIL) 5194 if (mch_signal_job(job, arg) == FAIL)
5195 return 0; 5195 return 0;
5196 5196
5197 /* Assume that only "kill" will kill the job. */ 5197 /* Assume that only "kill" will kill the job. */
5198 if (job->jv_channel != NULL && STRCMP(arg, "kill") == 0) 5198 if (job->jv_channel != NULL && STRCMP(arg, "kill") == 0)
5199 job->jv_channel->ch_job_killed = TRUE; 5199 job->jv_channel->ch_job_killed = TRUE;