From 6ade2a7db7e1c738032bd3132fbe8bff9b0a4de6 Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Tue, 8 Feb 2011 13:42:52 +0100 Subject: [PATCH] printer fatal user signal module --- cccli/printer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cccli/printer.py b/cccli/printer.py index 074bc0d..9d1ef3f 100644 --- a/cccli/printer.py +++ b/cccli/printer.py @@ -5,14 +5,15 @@ CloudControl CLI Printer module ''' +import cccli +from cccli.exception import * + import sys import os import termios import fcntl import struct - -import cccli -from cccli.exception import * +import signal color = { # regular @@ -83,7 +84,7 @@ class Printer(object): fd, nl) if quit: - os.kill(0, 15) + os.kill(0, signal.SIGKILL) def error(self, message, fd=sys.stderr, nl=os.linesep): self.out("%sError%s: %s%s"%(color["lred"],color["red"],message,color["reset"]), -- GitLab