Changeset 1423 for trunk/src/kmk/w32/subproc
- Timestamp:
 - Mar 19, 2008, 7:06:36 PM (18 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/src/kmk/w32/subproc/sub_proc.c (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kmk/w32/subproc/sub_proc.c
r1167 r1423 596 596 pproc->last_err = GetLastError(); 597 597 pproc->lerrno = E_FORK; 598 #ifdef KMK 599 if (pproc->last_err == ERROR_FILE_NOT_FOUND) 600 pproc->exit_code = 127; /* see execve failure in job.c. */ 601 #endif 598 602 fprintf(stderr, "process_begin: CreateProcess(%s, %s, ...) failed.\n", 599 603 exec_path ? exec_path : "NULL", command_line); … … 940 944 pproc->sv_stderr[0] = 0; 941 945 } 946 947 #ifdef KMK 948 if (childhand == NULL || childhand == INVALID_HANDLE_VALUE) { 949 goto done2; 950 } 951 #endif 942 952 943 953 /* … … 1328 1338 if (!((sub_process*) hProcess)->last_err) 1329 1339 ((sub_process*) hProcess)->last_err = -1; 1330 ((sub_process*) hProcess)->exit_code = process_last_err(hProcess); 1340 #ifdef KMK 1341 if (!((sub_process*) hProcess)->exit_code) 1342 #endif 1343 ((sub_process*) hProcess)->exit_code = process_last_err(hProcess); 1331 1344 1332 1345 #ifndef KMK  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  