Ignore:
Timestamp:
Aug 17, 2009, 10:00:41 PM (15 years ago)
Author:
quentin
Message:
Kill all svn child processes when exiting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/noc/nagios/scripts-plugins/check_svn

    r900 r1303  
    4646DEFAULT_TIMEOUT = 10
    4747
     48processes = []
    4849
    4950def end(status, message):
    5051    """Prints a message and exits. First arg is the status code
    5152    Second Arg is the string message"""
     53
     54    for process in processes:
     55        try:
     56                process.kill()
     57        except:
     58                pass
    5259   
    5360    check_name = "SVN "
     
    203210                             stdout=PIPE,
    204211                             stderr=STDOUT )
     212            processes.append(process)
    205213        except OSError, error:
    206214            error = str(error)
Note: See TracChangeset for help on using the changeset viewer.