Skip to content

Commit

Permalink
prettify procinfo logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8985 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 10, 2015
1 parent c4527cc commit 38aa1c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xpra/child_reaper.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def reaper_cleanup():
singleton.poll()


class ProcInfo(object):
def __repr__(self):
return "ProcInfo(%s)" % self.__dict__


# Note that this class has async subtleties -- e.g., it is possible for a
# child to exit and us to receive the SIGCHLD before our fork() returns (and
# thus before we even know the pid of the child). So be careful:
Expand Down Expand Up @@ -83,7 +88,7 @@ def check_once():
def add_process(self, process, name, command, ignore=False, forget=False, callback=None):
pid = process.pid
assert pid>0, "process has no pid!"
procinfo = AdHocStruct()
procinfo = ProcInfo()
procinfo.pid = pid
procinfo.name = name
procinfo.command = command
Expand Down

0 comments on commit 38aa1c6

Please sign in to comment.