filterfish / smith2

A complete rewrite of Smith
12 stars 7 forks source link

The agency needs to prune out truly dead agents #18

Open mpalmer opened 9 years ago

mpalmer commented 9 years ago

At present, if an agent is kill -9'd, or dies in some other overly abrupt manner (such as getting OOMed, or segfaulting), the output of smithctl list -la will continue to show the agent as motoring along happily (at least, that's what happened with an agent in the stopping state that I manually shot in the head).

It would be very useful if the agency did a quick kill -0 (or equivalent) on the agent's pid when it was asked for a list of all the agents, and remove from the list any agent whose PID no longer existed.