Changeset 792 in MondoRescue for branches/stable/mondo/mondo/common/newt-specific.c
- Timestamp:
- Sep 13, 2006, 11:48:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/newt-specific.c
r738 r792 128 128 extern char *g_boot_mountpt; 129 129 extern char *g_mondo_home; 130 extern char *ps_options; 130 131 131 132 extern void set_signals(int); … … 340 341 } 341 342 342 343 /** 344 * Kill any process containing the string @p str surrounded by spaces in its commandline. 345 */ 346 void kill_anything_like_this(char *str) { 347 348 char *tmp = NULL; 349 350 asprintf(&tmp,"kill `ps %s | grep \"" %s "\" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str); 351 run_program_and_log_output(tmp, TRUE); 352 paranoid_free(tmp); 353 } 343 354 344 355
Note:
See TracChangeset
for help on using the changeset viewer.