Lines Matching refs:job

1566 	job_T *job = term->tl_job;  in term_job_running_check()  local
1572 job_status(job); in term_job_running_check()
1573 return (job->jv_status == JOB_STARTED in term_job_running_check()
1574 || (job->jv_channel != NULL && job->jv_channel->ch_keep_open)); in term_job_running_check()
1636 job_T *job; in term_try_stop_job() local
1643 job = buf->b_term->tl_job; in term_try_stop_job()
1647 job_status(job); in term_try_stop_job()
1648 if (job->jv_status >= JOB_ENDED) in term_try_stop_job()
6586 job_T *job = NULL; in conpty_term_and_job_init() local
6671 job = job_alloc(); in conpty_term_and_job_init()
6672 if (job == NULL) in conpty_term_and_job_init()
6678 build_argv_from_string(cmd, &job->jv_argv, &argc); in conpty_term_and_job_init()
6684 build_argv_from_list(argvar->vval.v_list, &job->jv_argv, &argc); in conpty_term_and_job_init()
6688 job->jv_in_buf = buflist_findnr(opt->jo_io_buf[PART_IN]); in conpty_term_and_job_init()
6740 channel_set_job(channel, job, opt); in conpty_term_and_job_init()
6741 job_set_options(job, opt); in conpty_term_and_job_init()
6743 job->jv_channel = channel; in conpty_term_and_job_init()
6744 job->jv_proc_info = proc_info; in conpty_term_and_job_init()
6745 job->jv_job_object = jo; in conpty_term_and_job_init()
6746 job->jv_status = JOB_STARTED; in conpty_term_and_job_init()
6747 job->jv_tty_type = vim_strsave((char_u *)"conpty"); in conpty_term_and_job_init()
6748 ++job->jv_refcount; in conpty_term_and_job_init()
6749 term->tl_job = job; in conpty_term_and_job_init()
6774 if (job != NULL) in conpty_term_and_job_init()
6776 job->jv_channel = NULL; in conpty_term_and_job_init()
6777 job_cleanup(job); in conpty_term_and_job_init()
6937 job_T *job = NULL; in winpty_term_and_job_init() local
7005 job = job_alloc(); in winpty_term_and_job_init()
7006 if (job == NULL) in winpty_term_and_job_init()
7012 build_argv_from_string(cmd, &job->jv_argv, &argc); in winpty_term_and_job_init()
7018 build_argv_from_list(argvar->vval.v_list, &job->jv_argv, &argc); in winpty_term_and_job_init()
7022 job->jv_in_buf = buflist_findnr(opt->jo_io_buf[PART_IN]); in winpty_term_and_job_init()
7071 channel_set_job(channel, job, opt); in winpty_term_and_job_init()
7072 job_set_options(job, opt); in winpty_term_and_job_init()
7074 job->jv_channel = channel; in winpty_term_and_job_init()
7075 job->jv_proc_info.hProcess = child_process_handle; in winpty_term_and_job_init()
7076 job->jv_proc_info.dwProcessId = GetProcessId(child_process_handle); in winpty_term_and_job_init()
7077 job->jv_job_object = jo; in winpty_term_and_job_init()
7078 job->jv_status = JOB_STARTED; in winpty_term_and_job_init()
7079 job->jv_tty_in = utf16_to_enc( in winpty_term_and_job_init()
7081 job->jv_tty_out = utf16_to_enc( in winpty_term_and_job_init()
7083 job->jv_tty_type = vim_strsave((char_u *)"winpty"); in winpty_term_and_job_init()
7084 ++job->jv_refcount; in winpty_term_and_job_init()
7085 term->tl_job = job; in winpty_term_and_job_init()
7111 if (job != NULL) in winpty_term_and_job_init()
7113 job->jv_channel = NULL; in winpty_term_and_job_init()
7114 job_cleanup(job); in winpty_term_and_job_init()