py3: Fix sigint handler

Change-Id: I46c196c389f9425c398506a4abe4dd0abed7ade9
This commit is contained in:
Tim Burke 2020-07-14 12:52:10 -07:00
parent 31d474723c
commit 4539128ffc
1 changed files with 3 additions and 2 deletions

View File

@ -386,9 +386,10 @@ class BenchController(object):
def sigint1(self, signum, frame):
if self.delete:
print >>sys.stderr, (
print(
'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
if self.running and not isinstance(self.running, BenchDELETE):
self.running.aborted = True