X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=python%2Fovs%2Fprocess.py;h=d7561310cad12892213b2e54aa7a4c4bc80b6c42;hb=c1f90e07a6733dd4399bbb47ed6d63c6fa07573f;hp=f8182f197d3925d7871fb43818f6a5c283ddc3d6;hpb=8758e8a373338e409d7f2863ee91e01060f35628;p=sliver-openvswitch.git diff --git a/python/ovs/process.py b/python/ovs/process.py index f8182f197..d7561310c 100644 --- a/python/ovs/process.py +++ b/python/ovs/process.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2011 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) 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