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:
@@ -5127,6 +5127,7 @@ mch_job_status(job_T *job)
|
||||
|| dwExitCode != STILL_ACTIVE)
|
||||
{
|
||||
job->jv_status = JOB_ENDED;
|
||||
job->jv_exitval = (int)dwExitCode;
|
||||
return "dead";
|
||||
}
|
||||
return "run";
|
||||
|
@@ -1257,7 +1257,6 @@ struct jobvar_S
|
||||
job_T *jv_prev;
|
||||
#ifdef UNIX
|
||||
pid_t jv_pid;
|
||||
int jv_exitval;
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
PROCESS_INFORMATION jv_proc_info;
|
||||
@@ -1265,6 +1264,7 @@ struct jobvar_S
|
||||
#endif
|
||||
jobstatus_T jv_status;
|
||||
char_u *jv_stoponexit; /* allocated */
|
||||
int jv_exitval;
|
||||
char_u *jv_exit_cb; /* allocated */
|
||||
|
||||
int jv_refcount; /* reference count */
|
||||
|
@@ -747,6 +747,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1381,
|
||||
/**/
|
||||
1380,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user