Changeset 794 in MondoRescue for trunk/mondo/mondo/common/newt-specific.c
- Timestamp:
- Sep 14, 2006, 1:05:18 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/newt-specific.c
r783 r794 32 32 extern char *g_tmpfs_mountpt; 33 33 extern char *g_mondo_home; 34 extern char *ps_options; 34 35 35 36 extern void set_signals(int); … … 232 233 } 233 234 235 /** 236 * Kill any process containing the string @p str surrounded by spaces in its commandline. 237 */ 238 void kill_anything_like_this(char *str) { 239 240 char *tmp = NULL; 241 242 asprintf(&tmp,"kill `ps %s | grep \"" %s "\" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str); 243 run_program_and_log_output(tmp, TRUE); 244 paranoid_free(tmp); 245 } 234 246 235 247 /**
Note:
See TracChangeset
for help on using the changeset viewer.