Changeset 68 in MondoRescue
- Timestamp:
- Oct 17, 2005, 2:37:16 PM (20 years ago)
- Location:
- trunk/mondo/mondo/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-archive.c
r59 r68 926 926 paranoid_free(command); 927 927 if (strlen(tmp) > 1) { 928 log_to_screen(tmp);928 popup_and_OK(tmp); 929 929 } 930 930 paranoid_free(tmp); -
trunk/mondo/mondo/common/libmondo-fork.c
r59 r68 473 473 } 474 474 #endif 475 paranoid_pclose(fin); 476 retval += res; 475 /* Evaluate the status returned by pclose to get the exit code of the called program. */ 476 errno = 0; 477 res = pclose(fin); 478 /* Log actual pclose errors. */ 479 if (errno) log_msg(5, "pclose err: %d", errno); 480 /* Check if we have a valid status. If we do, extract the called program's exit code. */ 481 /* If we don't, highlight this fact by returning -1. */ 482 if (WIFEXITED(res)) { 483 retval = WEXITSTATUS(res); 484 } else { 485 retval = -1; 486 } 477 487 close_evalcall_form(); 478 488 unlink(lockfile);
Note:
See TracChangeset
for help on using the changeset viewer.