Revision 7f4e472cc131f5a687ec44524ff106a80cadff3f authored by Lorenz Bauer on 13 February 2024, 10:24:58 UTC, committed by Lorenz Bauer on 14 February 2024, 09:56:48 UTC
Watcher.loop will never exit if Watcher.Close is called while an event or error is being written to w.Errors or w.Events. Fix this by checking for w.stop. This allows running TestWatcher a couple thousand times without running into "too many open files". Fixes: 1cab8f375a ("certloader: Add fswatcher package") Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
1 parent b973589
File | Mode | Size |
---|---|---|
api | ||
auth | ||
cmd | ||
endpointgc | ||
identitygc | ||
k8s | ||
metrics | ||
option | ||
pkg | ||
watchers | ||
.gitignore | -rw-r--r-- | 111 bytes |
Makefile | -rw-r--r-- | 1.6 KB |
main.go | -rw-r--r-- | 279 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...