Problem: Function name mch_stop_job() is confusing.
Solution: Rename to mch_signal_job().
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);
}
/*
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. */
* 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;
* 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;
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);
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);
/* 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)
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");
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 899,
/**/
898,
/**/