Home
last modified time | relevance | path

Searched refs:job (Results 1 – 25 of 140) sorted by relevance

123456

/vim-8.2.3635/src/
H A Djob.c18 for ((job) = first_job; (job) != NULL; (job) = (job)->jv_next)
776 job->jv_next->jv_prev = job->jv_prev; in job_unlink()
780 job->jv_prev->jv_next = job->jv_next; in job_unlink()
816 job_T *job; in free_jobs_to_free_later() local
823 vim_free(job); in free_jobs_to_free_later()
887 job_T *job; in job_any_running() local
1071 for (job = first_job; !abort && job != NULL; job = job->jv_next) in set_ref_in_job()
1087 if (job != NULL && --job->jv_refcount <= 0) in job_unref()
1136 for (job = first_job; job != NULL; job = job_next) in free_unused_jobs()
1206 mch_signal_job(job, job->jv_stoponexit); in job_stop_on_exit()
[all …]
H A Dos_unix.c4468 job_T *job; in mch_call_shell_terminal() local
4482 ++job->jv_refcount; in mch_call_shell_terminal()
4503 job_unref(job); in mch_call_shell_terminal()
5503 &job->jv_tty_out, &job->jv_tty_in); in mch_job_start()
5741 job->jv_pid = pid; in mch_job_start()
5861 ch_log(job->jv_channel, "Job exited with %d", job->jv_exitval); in mch_job_status()
5866 job->jv_exitval = -1; in mch_job_status()
5868 if (job->jv_status < JOB_ENDED && job->jv_termsig != NULL) in mch_job_status()
5890 job_T *job; in mch_detect_ended_job() local
5908 for (job = job_list; job != NULL; job = job->jv_next) in mch_detect_ended_job()
[all …]
H A Dterminal.c1572 job_status(job); 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
1647 job_status(job); in term_try_stop_job()
6671 job = job_alloc(); in conpty_term_and_job_init()
6672 if (job == NULL) in conpty_term_and_job_init()
6774 if (job != NULL) in conpty_term_and_job_init()
6777 job_cleanup(job); in conpty_term_and_job_init()
7006 if (job == NULL) in winpty_term_and_job_init()
7111 if (job != NULL) in winpty_term_and_job_init()
[all …]
H A Dos_win32.c4681 job_T *job; in mch_call_shell_terminal() local
4716 ++job->jv_refcount; in mch_call_shell_terminal()
4737 job_unref(job); in mch_call_shell_terminal()
5416 job->jv_proc_info = pi; in mch_job_start()
5451 mch_job_status(job_T *job) in mch_job_status() argument
5474 job_T *job = job_list; in mch_detect_ended_job() local
5476 while (job != NULL) in mch_detect_ended_job()
5482 && job != NULL; job = job->jv_next) in mch_detect_ended_job()
5487 jobArray[n] = job; in mch_detect_ended_job()
5557 if (job->jv_channel != NULL && job->jv_channel->ch_anonymous_pipe) in mch_signal_job()
[all …]
/vim-8.2.3635/src/testdir/
H A Dtest_channel.vim1 " Test for channel and job functions.
558 let g:Ch_job = job
568 if j == job
623 let g:Ch_job = job
971 call job_stop(job)
1155 call job_stop(job)
1164 call job_stop(job)
1585 unlet g:job
1704 " Empty job tests
1722 unlet g:job
[all …]
H A Dtest_job_fails.vim8 CheckFeature job
9 let job = job_start('axdfxsdf')
11 call WaitForAssert({-> assert_equal("dead", job_status(job))})
13 call WaitForAssert({-> assert_equal("fail", job_status(job))})
H A Dtest_quotestar.vim33 if !has('clientserver') || !has('job')
34 return 'Test requires the client-server and job features'
61 let job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'})
62 call WaitForAssert({-> assert_equal("run", job_status(job))})
122 call WaitForAssert({-> assert_equal("dead", job_status(job))})
124 if job_status(job) != 'dead'
126 call job_stop(job, 'kill')
H A Dtest_terminal.vim41 unlet g:job
82 unlet g:job
97 unlet g:job
107 unlet g:job
123 unlet g:job
140 unlet g:job
200 unlet g:job
755 unlet g:job
943 unlet g:job
957 unlet g:job
[all …]
H A Dterm_util.vim25 let job = term_getjob(a:buf)
26 call WaitForAssert({-> assert_equal("dead", job_status(job))})
159 " Open a terminal with a shell, assign the job to g:job and return the buffer
173 let g:job = term_getjob(buf)
174 call assert_equal(v:t_job, type(g:job))
176 let string = string({'job': buf->term_getjob()})
177 call assert_match("{'job': 'process \\d\\+ run'}", string)
H A Dshared.vim16 " We also need the job feature or the pkill command to make sure the server
18 if !(executable('python') && (has('job') || executable('pkill')))
39 " Run "cmd". Returns the job if using a job.
44 let job = 0
45 if has('job')
46 let job = job_start(a:cmd, {"stoponexit": "hup"})
47 call job_setoptions(job, {"stoponexit": "kill"})
53 return job
111 if has('job')
145 " call WaitForAssert({-> assert_equal("dead", job_status(job)})
H A Dtest_clientserver.vim4 CheckFeature job
38 let job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'})
39 call WaitForAssert({-> assert_equal("run", job_status(job))})
177 call WaitForAssert({-> assert_equal("dead", job_status(job))})
179 if job_status(job) != 'dead'
181 call job_stop(job, 'kill')
H A Dtest_partial.vim274 CheckFeature job
275 let job = job_start('echo')
276 call job_setoptions(job, {'exit_cb': function('Ignored3', [job])})
277 unlet job
280 func Ignored2(job, status) argument
284 CheckFeature job
H A Dtest_vim9_fails.vim7 var job1: job
8 var job2: job = job_start('willfail')
H A Dtest_memory_usage.vim65 let self.job = term_getjob(self.buf)
66 call WaitFor({-> job_status(self.job) ==# 'run'})
67 let self.pid = job_info(self.job).process
72 call WaitFor({-> job_status(self.job) ==# 'dead'})
H A Dtest_terminal2.vim182 let job = term_getjob(buf)
184 call WaitForAssert({-> assert_equal("dead", job_status(job))})
292 " closing window wipes out the terminal buffer a with finished job
296 unlet g:job
557 call assert_equal(job_info(g:job).tty_out, gettty0)
558 call assert_equal(job_info(g:job).tty_in, gettty1)
H A Dtest_timers.vim403 let job = term_getjob(buf)
410 call assert_equal('run', job_status(job))
413 call WaitFor({-> job_status(job) ==# 'dead'})
415 call assert_equal('', job_info(job).termsig)
H A Dtest_prompt_buffer.vim202 " Make a job continuously write to a hidden buffer, check that the prompt
208 let job = job_start(['/bin/sh', '-c',
H A Dtest_terminal_fail.vim16 call assert_match('executing job failed', readfile('Xfile')[0])
/vim-8.2.3635/runtime/doc/
H A Dchannel.txt22 9. Starting a job with a channel |job-start|
23 10. Starting a job without a channel |job-start-nochannel|
26 13. Controlling a job |job-control|
31 {only when compiled with the |+job| feature for job stuff}
47 For when using sockets See |job-start|, |job-start-nochannel| and
731 9. Starting a job with a channel *job-start* *job*
823 10. Starting a job without a channel *job-start-nochannel*
982 Stop the {job}. This can also be used to signal the job.
1077 *job-drop*
1222 13. Controlling a job *job-control*
[all …]
H A Dterminal.txt28 Vim to job: term_sendkeys() |terminal-to-job|
89 to the job. For example:
103 CTRL-BREAK will also kill the job.
282 the job is killed, similar to calling `job_stop(job, "kill")` .
353 job. That includes the cursor position. Typed keys are sent to the job.
677 running job is running
678 finished job has finished
692 job in the terminal has set.
811 check that the job actually stopped.
938 Vim to job: term_sendkeys() ~
[all …]
/vim-8.2.3635/runtime/autoload/
H A Dcontext.vim48 if has('job')
66 for job in l:jobs
67 call job_stop(job)
71 for job in l:jobs
72 if job_status(job) == "run"
73 call add(l:tmp, job)
85 if index(g:context_jobs, a:job) != -1 && job_status(a:job) != 'run' " just in case
88 call s:callback(a:path, a:job, a:status)
116 call s:callback(a:path, a:job, a:status)
125 endif " has('job')
[all …]
/vim-8.2.3635/src/proto/
H A Djob.pro1 /* job.c */
8 void job_cleanup(job_T *job);
10 void job_unref(job_T *job);
14 void job_set_options(job_T *job, jobopt_T *opt);
19 char *job_status(job_T *job);
20 int job_stop(job_T *job, typval_T *argvars, char *type);
H A Dos_unix.pro63 void mch_job_start(char **argv, job_T *job, jobopt_T *options, int is_terminal);
64 char *mch_job_status(job_T *job);
66 int mch_signal_job(job_T *job, char_u *how);
67 void mch_clear_job(job_T *job);
68 int mch_create_pty_channel(job_T *job, jobopt_T *options);
H A Dos_win32.pro49 void mch_job_start(char *cmd, job_T *job, jobopt_T *options);
50 char *mch_job_status(job_T *job);
52 int mch_signal_job(job_T *job, char_u *how);
53 void mch_clear_job(job_T *job);
/vim-8.2.3635/runtime/syntax/
H A Dupstart.vim2 " Language: Upstart job files
8 " Remark: Syntax highlighting for Upstart (init(8)) job files.

123456