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
index 19d3c5d..7eb6ce7 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4844,7 +4844,7 @@
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 @@
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. */