Skip to content

Commit eab089d

Browse files
committed
patch 7.4.1381
Problem: Exit value not available on MS-Windows. Solution: Set the exit value.
1 parent ee1cffc commit eab089d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/os_win32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5127,6 +5127,7 @@ mch_job_status(job_T *job)
51275127
|| dwExitCode != STILL_ACTIVE)
51285128
{
51295129
job->jv_status = JOB_ENDED;
5130+
job->jv_exitval = (int)dwExitCode;
51305131
return "dead";
51315132
}
51325133
return "run";

src/structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,14 +1257,14 @@ struct jobvar_S
12571257
job_T *jv_prev;
12581258
#ifdef UNIX
12591259
pid_t jv_pid;
1260-
int jv_exitval;
12611260
#endif
12621261
#ifdef WIN32
12631262
PROCESS_INFORMATION jv_proc_info;
12641263
HANDLE jv_job_object;
12651264
#endif
12661265
jobstatus_T jv_status;
12671266
char_u *jv_stoponexit; /* allocated */
1267+
int jv_exitval;
12681268
char_u *jv_exit_cb; /* allocated */
12691269

12701270
int jv_refcount; /* reference count */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ static char *(features[]) =
747747

748748
static int included_patches[] =
749749
{ /* Add new patch number below this line */
750+
/**/
751+
1381,
750752
/**/
751753
1380,
752754
/**/

0 commit comments

Comments
 (0)