X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fprocess.py;h=d7561310cad12892213b2e54aa7a4c4bc80b6c42;hb=6dc2f8eeada4e4e1b1fc29d69cb7cbdf1cd94061;hp=7367f79393d8edcbb8c92c3f780260fc8f88a307;hpb=523a3bc7733b13cbfb4b702739cd26d0c29b05f7;p=openvswitch diff --git a/python/ovs/process.py b/python/ovs/process.py index 7367f793..d7561310 100644 --- a/python/ovs/process.py +++ b/python/ovs/process.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010 Nicira Networks +# Copyright (c) 2010, 2011 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,13 +15,15 @@ import os import signal -def _signal_status_msg(type, signr): - s = "%s by signal %d" % (type, signr) + +def _signal_status_msg(type_, signr): + s = "%s by signal %d" % (type_, signr) for name in signal.__dict__: if name.startswith("SIG") and getattr(signal, name) == signr: return "%s (%s)" % (s, name) return s - + + def status_msg(status): """Given 'status', which is a process status in the form reported by waitpid(2) and returned by process_status(), returns a string describing