sheldonjuncker / kubycat

A small package for syncing files into a Kubernetes cluster.
MIT License
1 stars 0 forks source link

fswatch seems to continue running in the background after parent has exited #1

Open dannykennedy opened 1 year ago

dannykennedy commented 1 year ago

image

sheldonjuncker commented 1 year ago

This was an issue related to how Perl executes the background fswatch process which when not cleaned up properly becomes a zombie and sticks around trying to contact the Kubycat server whenever it detect file changes.

I've added a fix such that before Perl exits it cleans up the fswatch process that it spawned. These can also be deleted manually and will go away after a reboot. I've added a few additional features as well so I'll get this in the next release but it's there now in master if you want to use it.