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";