Changeset 928 in MondoRescue
- Timestamp:
- Nov 13, 2006, 10:17:07 AM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-fifo.c
r797 r928 137 137 138 138 extern char *ps_options; 139 extern char *ps_proc_id; 139 140 140 141 /** … … 233 234 /** 234 235 * Kill @c buffer processes. 236 * Only called in mondoarchive 235 237 */ 236 238 void kill_buffer() … … 243 245 paranoid_system("sync"); 244 246 sprintf(command, 245 "ps %s | grep -F \"%s\" | grep -Fv grep | awk '{print $ 1;}' | grep -v PID | tr -s '\n' ' ' | awk '{ print $1; }'", ps_options,247 "ps %s | grep -F \"%s\" | grep -Fv grep | awk '{print $2;}' | grep -v PID | head -1", ps_options, 246 248 g_sz_call_to_buffer); 247 249 log_msg(2, "kill_buffer() --- command = %s", command); -
branches/stable/mondo/src/common/newt-specific.c
r883 r928 129 129 extern char *g_mondo_home; 130 130 extern char *ps_options; 131 extern char *ps_proc_id; 131 132 132 133 extern void set_signals(int); … … 348 349 char *tmp = NULL; 349 350 350 asprintf(&tmp,"kill `ps %s | grep \" %s \" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str);351 asprintf(&tmp,"kill `ps %s | grep \" %s \" | awk '{print %s;}' | grep -vx \"\\?\"`", ps_options, str , ps_proc_id); 351 352 run_program_and_log_output(tmp, TRUE); 352 353 paranoid_free(tmp); -
branches/stable/mondo/src/mondoarchive/main.c
r814 r928 141 141 long diffs; 142 142 char *ps_options = "auxww"; 143 char *ps_proc_id = "$2"; 143 144 144 145 extern t_bkptype g_backup_media_type; -
branches/stable/mondo/src/mondorestore/mondo-restore.c
r912 r928 489 489 char *g_mondo_home; 490 490 491 /* Busybox ps has no option and PID in first pos */ 491 492 char *ps_options = ""; 493 char *ps_proc_id = "$1"; 492 494 493 495 /* @} - end of "Restore-Time Globals" in globalGroup */
Note:
See TracChangeset
for help on using the changeset viewer.