Ignore:
Timestamp:
Jan 27, 2011, 7:31:24 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4180@localhost: bruno | 2011-01-27 10:26:41 +0100

  • Fix multiple port issues from 2.2.9 that prevented mindi to work
  • Change interface of call_program_and_get_last_line_of_output to allow not logging (call to mindi)
  • Status is working boot, but NFS interface broken due to conf file issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-fork.c

    r2696 r2704  
    3535 * @note The returned value points to an allocated string that the caller needs to free
    3636 */
    37 char *call_program_and_get_last_line_of_output(char *call)
     37char *call_program_and_get_last_line_of_output(char *call, bool logit)
    3838{
    3939    /*@ buffers ***************************************************** */
     
    5252    mr_asprintf(tmpf, "%s/cpgll.out", bkpinfo->tmpdir);
    5353    mr_asprintf(newcall, "%s > %s", call, tmpf);
    54     log_msg(4, "Calling command: %s", newcall);
     54    if (logit) {
     55        log_msg(4, "Calling command: %s", newcall);
     56    }
    5557    /* By default return an empty string in any case */
    5658    mr_asprintf(result, "");
     
    7375            mr_free(tmp);
    7476        }
    75         log_msg(9, "Pre-Result: %s", result);
     77        if (logit) {
     78            log_msg(9, "Pre-Result: %s", result);
     79        }
    7680        mr_strip_spaces(result);
    7781        paranoid_pclose(fin);
     
    8084    }
    8185    mr_free(tmpf);
    82     log_msg(4, "Result: %s", result);
     86    if (logit) {
     87        log_msg(4, "Result: %s", result);
     88    }
    8389    return(result);
    8490}
Note: See TracChangeset for help on using the changeset viewer.