comparison src/structs.h @ 10386:d3f0946b4a80 v8.0.0087

commit https://github.com/vim/vim/commit/7df915d113ac1981792c50e8b000c9f5f784b78b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 17 17:25:32 2016 +0100 patch 8.0.0087 Problem: When the channel callback gets job info the job may already have been deleted. (lifepillar) Solution: Do not delete the job when the channel is still useful. (ichizok, closes #1242, closes #1245)
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Nov 2016 17:30:04 +0100
parents 147f45c283e1
children 65e0537a4560
comparison
equal deleted inserted replaced
10385:368468ef35cf 10386:d3f0946b4a80
1419 int pt_argc; /* number of arguments */ 1419 int pt_argc; /* number of arguments */
1420 typval_T *pt_argv; /* arguments in allocated array */ 1420 typval_T *pt_argv; /* arguments in allocated array */
1421 dict_T *pt_dict; /* dict for "self" */ 1421 dict_T *pt_dict; /* dict for "self" */
1422 }; 1422 };
1423 1423
1424 /* Status of a job. Order matters! */
1424 typedef enum 1425 typedef enum
1425 { 1426 {
1426 JOB_FAILED, 1427 JOB_FAILED,
1427 JOB_STARTED, 1428 JOB_STARTED,
1428 JOB_ENDED 1429 JOB_ENDED, /* detected job done */
1430 JOB_FINISHED /* job done and cleanup done */
1429 } jobstatus_T; 1431 } jobstatus_T;
1430 1432
1431 /* 1433 /*
1432 * Structure to hold info about a Job. 1434 * Structure to hold info about a Job.
1433 */ 1435 */