Closed xy-man closed 5 years ago
https://github.com/OpenTSDB/tcollector/blob/6a4049050201653b10e31ada8d22e7a9a7b94fc8/tcollector.py#L1268
If kill (col.proc) command is failed, tcollector daemon hang with OSError: [Errno 3] No such process. This situation occurs when the process is terminated before os.killpg is called.
kill (col.proc)
OSError: [Errno 3] No such process
I think, kill function maybe needs to be modified like follow:
def kill(proc, signum=signal.SIGTERM): try: os.killpg(proc.pid, signum) except: LOG.info('already killed: %s', proc.pid)
https://github.com/OpenTSDB/tcollector/blob/6a4049050201653b10e31ada8d22e7a9a7b94fc8/tcollector.py#L1268
If
kill (col.proc)
command is failed, tcollector daemon hang withOSError: [Errno 3] No such process
. This situation occurs when the process is terminated before os.killpg is called.I think, kill function maybe needs to be modified like follow: