def get_cmdline(self):
        try:
            cmd = open("/proc/%d/cmdline" % (self.pid,)).read()
        except IOError, err:
            self.pid = None
            return "<exited>"
        cmd = cmd.translate(_CMDTRANS).strip()
        if not cmd:
            return self.command
        else:
            return cmd
dataset/ETHPy150Open kdart/pycopia/core/pycopia/OS/FreeBSD/procfs.py/ProcStat.get_cmdline/original