patch 7.4.1381
Problem: Exit value not available on MS-Windows.
Solution: Set the exit value.
diff --git a/src/os_win32.c b/src/os_win32.c
index 631f88e..0470450 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5127,6 +5127,7 @@
|| dwExitCode != STILL_ACTIVE)
{
job->jv_status = JOB_ENDED;
+ job->jv_exitval = (int)dwExitCode;
return "dead";
}
return "run";
diff --git a/src/structs.h b/src/structs.h
index b67f48a..e1720ce 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1257,7 +1257,6 @@
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 @@
#endif
jobstatus_T jv_status;
char_u *jv_stoponexit; /* allocated */
+ int jv_exitval;
char_u *jv_exit_cb; /* allocated */
int jv_refcount; /* reference count */
diff --git a/src/version.c b/src/version.c
index b615354..144dc18 100644
--- a/src/version.c
+++ b/src/version.c
@@ -748,6 +748,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1381,
+/**/
1380,
/**/
1379,