Changeset 688 in MondoRescue for trunk/mondo/mondo/common/libmondo-fifo.c
- Timestamp:
- Jul 17, 2006, 3:44:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-fifo.c
r687 r688 13 13 #endif 14 14 #include <fcntl.h> 15 #include <stdio.h>16 15 17 16 #include <errno.h> … … 85 84 wise_upper_limit = (am_I_in_disaster_recovery_mode()? 8 : 32); 86 85 wise_lower_limit = 1; // wise_upper_limit/2 + 1; 87 paranoid_system("sync");86 sync(); 88 87 for (bufsize = wise_upper_limit, res = -1; 89 88 res != 0 && bufsize >= wise_lower_limit; bufsize--) { … … 96 95 if (!res) { 97 96 bufsize++; 98 asprintf(&tmp, _("Negotiated max buffer of %d MB " , bufsize));97 asprintf(&tmp, _("Negotiated max buffer of %d MB "), bufsize); 99 98 log_to_screen(tmp); 100 99 paranoid_free(tmp); … … 160 159 char *command; 161 160 162 paranoid_system("sync");161 sync(); 163 162 asprintf(&command, 164 163 "ps wwax | grep -F \"%s\" | grep -Fv grep | awk '{print $1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'", … … 167 166 log_msg(2, "kill_buffer() --- command = %s", command); 168 167 169 asprintf(&tmp, "%s", 170 call_program_and_get_last_line_of_output(command)); 168 tmp = call_program_and_get_last_line_of_output(command); 171 169 paranoid_free(command); 172 170 … … 177 175 run_program_and_log_output(command, TRUE); 178 176 } 177 paranoid_free(tmp); 179 178 paranoid_free(command); 180 paranoid_free(tmp);181 179 } 182 180
Note:
See TracChangeset
for help on using the changeset viewer.