Ignore:
Timestamp:
Sep 14, 2006, 1:05:18 AM (14 years ago)
Author:
Bruno Cornec
Message:

merge -r781:793 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/newt-specific.c

    r783 r794  
    3232extern char *g_tmpfs_mountpt;
    3333extern char *g_mondo_home;
     34    extern char *ps_options;
    3435
    3536extern void set_signals(int);
     
    232233    }
    233234
     235/**
     236 * Kill any process containing the string @p str surrounded by spaces in its commandline.
     237 */
     238void kill_anything_like_this(char *str) {
     239
     240char *tmp = NULL;
     241
     242asprintf(&tmp,"kill `ps %s | grep \"" %s "\" | awk '{print $1;}' | grep -vx \"\\?\"`", ps_options, str);
     243run_program_and_log_output(tmp, TRUE);
     244paranoid_free(tmp);
     245}
    234246
    235247/**
Note: See TracChangeset for help on using the changeset viewer.