I've written a tool that uses inotify watches to monitor directory changes. It starts a separate thread per watched directory, each using inotify to setup the watch.
What happens to these threads/watches if the parent process is terminated with kill?