keybase/keybase-bot

calls to watch are leaving listening process dangling

malgorithms opened this issue · 0 comments

in addition to deinit shutting down the service with ctl stop we need to kill any keybase chat apit-listen processes we've spawned. I noticed from starting and stopping my bot a lot I've built up a bunch of these. They look like this in ps ax from the terminal:

keybase --home /var/folders/41/6f73s76927x9td9dy4ws2x_80000gn/T/keybase_bot_a213c2541adb98f7956fe53dbdcbf92c chat api-listen

So deinit should do 2 extra things:

(1) make sure this process is dead

(2) make sure watchFor... functions attached to deinitialized bots aren't keeping the bot's script alive. I think right now if you write a bot script and deinit your bot, your program won't exit. It should, since it should be done watching for things.