Changeset 792 in MondoRescue for branches/stable/mondo/mondo/common/libmondo-fifo.c
- Timestamp:
- Sep 13, 2006, 11:48:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/libmondo-fifo.c
r681 r792 136 136 /* @} - end of globalGroup */ 137 137 138 extern char *ps_options; 138 139 139 140 /** … … 210 211 } 211 212 sleep(2); 212 sprintf(tmp, "ps wwax | grep \"%s\"", g_sz_call_to_buffer);213 sprintf(tmp, "ps %s | grep \"%s\"", ps_options, g_sz_call_to_buffer); 213 214 if (run_program_and_log_output(tmp, 2)) { 214 215 log_msg(2, "Warning - I think I failed to open tape, actually."); … … 216 217 g_tape_buffer_size_MB = bufsize; 217 218 tmp[30] = '\0'; 218 sprintf(command, "ps wwax | grep buffer | grep -v grep");219 sprintf(command, "ps %s | grep buffer | grep -v grep", ps_options); 219 220 if (run_program_and_log_output(command, 1)) { 220 221 fres = NULL; … … 242 243 paranoid_system("sync"); 243 244 sprintf(command, 244 "ps wwax | grep -F \"%s\" | grep -Fv grep | awk '{print $1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'",245 "ps | grep -F \"%s\" | grep -Fv grep | awk '{print $1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'", ps_options, 245 246 g_sz_call_to_buffer); 246 247 log_msg(2, "kill_buffer() --- command = %s", command);
Note:
See TracChangeset
for help on using the changeset viewer.