Ignore:
Timestamp:
Jan 4, 2008, 6:51:30 PM (12 years ago)
Author:
bruno
Message:

before killing a process test that there is a result to ps (avoid whom to kill messages)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/mondorestore/mondo-rstr-tools.c

    r1848 r1850  
    169169char *g_getfacl = NULL;
    170170
     171extern void kill_anything_like_this(char *str);
     172
    171173/**
    172174* @addtogroup restoreUtilityGroup
     
    514516* Kill all Petris processes.
    515517*/
    516 void kill_petris(void)
    517 {
    518 char *command;
    519 malloc_string(command);
    520 sprintf(command,
    521     "kill `ps 2> /dev/null | grep petris 2> /dev/null | grep -v grep | cut -d' ' -f2` 2> /dev/null");
    522 paranoid_system(command);
    523 paranoid_free(command);
     518void kill_petris(void) {
     519    kill_anything_like_this("petris")
    524520}
    525521
Note: See TracChangeset for help on using the changeset viewer.