Changeset 2324 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-fork.c
- Timestamp:
- Aug 18, 2009, 3:13:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-fork.c
r2323 r2324 252 252 /*@ int ********************************************************* */ 253 253 int res; 254 int i;255 254 bool log_if_failure = FALSE; 256 255 bool log_if_success = FALSE; … … 354 353 355 354 /*@ buffers **************************************************** */ 356 char *tmp = NULL;357 355 char *command = NULL; 358 356 char *lockfile = NULL; … … 367 365 mr_asprintf(command, "echo hi > %s ; %s >> %s 2>> %s; res=$?; sleep 1; rm -f %s; exit $res", lockfile, basic_call, MONDO_LOGFILE, MONDO_LOGFILE, lockfile); 368 366 open_evalcall_form(what_i_am_doing); 369 mr_asprintf(tmp, "Executing %s", basic_call); 370 log_msg(2, tmp); 371 mr_free(tmp); 367 log_msg(2, "Executing %s", basic_call); 372 368 373 369 if (!(fin = popen(command, "r"))) { 374 370 log_OS_error("Unable to popen-in command"); 375 mr_asprintf(tmp, "Failed utterly to call '%s'", command); 376 log_to_screen(tmp); 377 mr_free(tmp); 371 log_to_screen("Failed utterly to call '%s'", command); 378 372 mr_free(command); 379 373 mr_free(lockfile);
Note:
See TracChangeset
for help on using the changeset viewer.