Changeset 1850 in MondoRescue for branches/2.2.5/mondo/src/common/newt-specific.c
- Timestamp:
- Jan 4, 2008, 6:51:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/newt-specific.c
r1747 r1850 350 350 351 351 char *tmp = NULL; 352 353 asprintf(&tmp,"kill `ps %s | grep \" %s \" | awk '{print %s;}' | grep -v \"grep\"`", ps_options, str , ps_proc_id); 352 char *tmp1 = NULL; 353 354 asprintf(&tmp,"ps %s | grep \" %s \" | awk '{print %s;}' | grep -v \"grep\"", ps_options, str , ps_proc_id); 354 355 run_program_and_log_output(tmp, TRUE); 356 if (strlen(tmp) > 0) { 357 asprintf(&tmp1,"kill %s", tmp); 358 run_program_and_log_output(tmp1, TRUE); 359 paranoid_free(tmp1); 360 } 355 361 paranoid_free(tmp); 356 362 }
Note:
See TracChangeset
for help on using the changeset viewer.