diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-21 16:40:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-21 16:40:11 +0100 |
commit | 65edff8f51e9e54f85407bdb9156ae8e3e1b76a1 (patch) | |
tree | 6982c12c67d2e65ed987df609968f647585d18eb /src/structs.h | |
parent | 08298fa1d3e32c2af476582792fc4f70cd57a59a (diff) |
patch 7.4.1378v7.4.1378
Problem: Can't change job settings after it started.
Solution: Add job_setoptions() with the "stoponexit" flag.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/structs.h b/src/structs.h index 4bb44a0217..56b698cc17 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1253,6 +1253,8 @@ typedef enum */ struct jobvar_S { + job_T *jv_next; + job_T *jv_prev; #ifdef UNIX pid_t jv_pid; int jv_exitval; @@ -1262,6 +1264,7 @@ struct jobvar_S HANDLE jv_job_object; #endif jobstatus_T jv_status; + char_u *jv_stoponexit; /* allocated */ int jv_refcount; /* reference count */ channel_T *jv_channel; /* channel for I/O, reference counted */ @@ -1386,6 +1389,7 @@ struct channel_S { #define JO_ERR_TIMEOUT 0x0400 /* stderr timeouts */ #define JO_PART 0x0800 /* "part" */ #define JO_ID 0x1000 /* "id" */ +#define JO_STOPONEXIT 0x2000 /* "stoponexit" */ #define JO_ALL 0xffffff #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE) @@ -1412,6 +1416,8 @@ typedef struct int jo_err_timeout; int jo_part; int jo_id; + char_u jo_soe_buf[NUMBUFLEN]; + char_u *jo_stoponexit; } jobopt_T; |