handle sigterm to exit gracefully. this is a one-liner for #3620.

This commit is contained in:
Barış Metin
2006-10-04 11:20:18 +00:00
parent eee4a45668
commit 8ef8429939
+2
View File
@@ -75,6 +75,8 @@ if __name__ == "__main__":
sys.excepthook = handle_exception
signal.signal(signal.SIGTERM, exit)
locale.setlocale(locale.LC_ALL, '')
cli = pisicli.PisiCLI()
cli.run_command()