Changeset 2339 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-fork.c
- Timestamp:
- Aug 21, 2009, 1:50:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-fork.c
r2331 r2339 86 86 * @param isofile Replaces @c _ISO_ in @p basic_call. Should probably be the ISO image to create (-o parameter to mkisofs). 87 87 * @param cd_no Replaces @c _CD#_ in @p basic_call. Should probably be the CD number. 88 * @param logstub Unused.89 88 * @param what_i_am_doing The action taking place (e.g. "Making ISO #1"). Used as the title of the progress dialog. 90 89 * @return Exit code of @c mkisofs (0 is success, anything else indicates failure). 91 * @bug @p logstub is unused.92 90 */ 93 91 int 94 eval_call_to_make_ISO(char *basic_call, char *isofile, 95 int cd_no, char *logstub, char *what_i_am_doing) 96 { 92 eval_call_to_make_ISO(char *basic_call, char *isofile, int cd_no, char *what_i_am_doing) { 97 93 98 94 /*@ int's *** */ … … 117 113 assert(bkpinfo != NULL); 118 114 assert_string_is_neither_NULL_nor_zerolength(isofile); 119 assert_string_is_neither_NULL_nor_zerolength(logstub);120 115 malloc_string(incoming); 121 116 malloc_string(old_stderr); … … 222 217 log_msg(1, "command = '%s'", command); 223 218 if (!g_text_mode) { 224 retval = run_external_binary_with_percentage_indicator_NEW 225 (what_i_am_doing, command); 219 retval = run_external_binary_with_percentage_indicator_NEW(what_i_am_doing, command); 226 220 } else { 227 221 retval += system(command); … … 630 624 631 625 632 int run_external_binary_with_percentage_indicator_NEW(char *tt, char *cmd) 633 { 626 int run_external_binary_with_percentage_indicator_NEW(char *tt, char *cmd) { 634 627 635 628 /*@ int *************************************************************** */ … … 667 660 for (sleep(1); command[0] != '\0'; sleep(1)) { 668 661 pcno = grab_percentage_from_last_line_of_file(MONDO_LOGFILE); 669 if (pcno < =0 || pcno > 100) {670 log_msg(8, "Weird pc# ");662 if (pcno < 0 || pcno > 100) { 663 log_msg(8, "Weird pc# %d", pcno); 671 664 continue; 672 665 }
Note:
See TracChangeset
for help on using the changeset viewer.