py3: Fix sigint handler
Change-Id: I46c196c389f9425c398506a4abe4dd0abed7ade9
This commit is contained in:
parent
31d474723c
commit
4539128ffc
|
@ -386,9 +386,10 @@ class BenchController(object):
|
||||||
|
|
||||||
def sigint1(self, signum, frame):
|
def sigint1(self, signum, frame):
|
||||||
if self.delete:
|
if self.delete:
|
||||||
print >>sys.stderr, (
|
print(
|
||||||
'SIGINT received; finishing up and running DELETE.\n'
|
'SIGINT received; finishing up and running DELETE.\n'
|
||||||
'Send one more SIGINT to exit *immediately*.')
|
'Send one more SIGINT to exit *immediately*.',
|
||||||
|
file=sys.stderr)
|
||||||
self.aborted = True
|
self.aborted = True
|
||||||
if self.running and not isinstance(self.running, BenchDELETE):
|
if self.running and not isinstance(self.running, BenchDELETE):
|
||||||
self.running.aborted = True
|
self.running.aborted = True
|
||||||
|
|
Loading…
Reference in New Issue