0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1381

Problem:    Exit value not available on MS-Windows.
Solution:   Set the exit value.
This commit is contained in:
Bram Moolenaar
2016-02-21 19:32:02 +01:00
parent ee1cffc07a
commit eab089d22f
3 changed files with 4 additions and 1 deletions

View File

@@ -5127,6 +5127,7 @@ mch_job_status(job_T *job)
|| dwExitCode != STILL_ACTIVE) || dwExitCode != STILL_ACTIVE)
{ {
job->jv_status = JOB_ENDED; job->jv_status = JOB_ENDED;
job->jv_exitval = (int)dwExitCode;
return "dead"; return "dead";
} }
return "run"; return "run";

View File

@@ -1257,7 +1257,6 @@ struct jobvar_S
job_T *jv_prev; job_T *jv_prev;
#ifdef UNIX #ifdef UNIX
pid_t jv_pid; pid_t jv_pid;
int jv_exitval;
#endif #endif
#ifdef WIN32 #ifdef WIN32
PROCESS_INFORMATION jv_proc_info; PROCESS_INFORMATION jv_proc_info;
@@ -1265,6 +1264,7 @@ struct jobvar_S
#endif #endif
jobstatus_T jv_status; jobstatus_T jv_status;
char_u *jv_stoponexit; /* allocated */ char_u *jv_stoponexit; /* allocated */
int jv_exitval;
char_u *jv_exit_cb; /* allocated */ char_u *jv_exit_cb; /* allocated */
int jv_refcount; /* reference count */ int jv_refcount; /* reference count */

View File

@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1381,
/**/ /**/
1380, 1380,
/**/ /**/