comparison mx/commands.py @ 4293:d4906ea4255b

Handle SIGTERM : killing mx will properly kill subprocesses Some tabs/spaces mixups
author Gilles Duboscq <gilles.m.duboscq@gmail.com>
date Wed, 18 Jan 2012 16:53:04 +0100
parents 2bc254976621
children 600cbdce9805
comparison
equal deleted inserted replaced
4292:48cbd78fa964 4293:d4906ea4255b
514 resultFile = None 514 resultFile = None
515 if '-resultfile' in args: 515 if '-resultfile' in args:
516 index = args.index('-resultfile') 516 index = args.index('-resultfile')
517 if index + 1 < len(args): 517 if index + 1 < len(args):
518 resultFile = args[index + 1] 518 resultFile = args[index + 1]
519 del args[index] 519 del args[index]
520 del args[index] 520 del args[index]
521 else: 521 else:
522 mx.abort('-resultfile must be followed by a file name') 522 mx.abort('-resultfile must be followed by a file name')
523 vm = 'graal' 523 vm = 'graal'
524 if '-vm' in args: 524 if '-vm' in args:
525 index = args.index('-vm') 525 index = args.index('-vm')
526 if index + 1 < len(args): 526 if index + 1 < len(args):
527 vm = args[index + 1] 527 vm = args[index + 1]
528 del args[index] 528 del args[index]
529 del args[index] 529 del args[index]
530 else: 530 else:
531 mx.abort('-vm must be followed by a vm name (graal, server, client..)') 531 mx.abort('-vm must be followed by a vm name (graal, server, client..)')
532 if len(args) is 0: 532 if len(args) is 0:
533 args += ['all'] 533 args += ['all']
534 534