DockerCLI/cli-plugins/socket
Laura Brehm 3dcc653533
plugins: cleanup sockets when done
Since 509123f935, we've been leaking sockets
in the filesystem on platforms where abstract sockets aren't supported.

That change relied on Go to cleanup our sockets for us, which Go will happily
do as long as we make sure to close the listener, which we weren't previously
doing unless to signal the plugin to terminate.

This change adds a deferred call to `PluginServer.Close()`, which makes sure we
close the plugin server at the end of the plugin execution, so that we never exit
without cleaning up.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2024-06-12 11:16:10 +01:00
..
socket.go plugins: cleanup sockets when done 2024-06-12 11:16:10 +01:00
socket_abstract.go plugin: drop explicit unlink 2024-03-22 10:12:40 -06:00
socket_noabstract.go plugin: drop explicit unlink 2024-03-22 10:12:40 -06:00
socket_test.go plugin: closer-based plugin notification socket 2024-03-21 15:08:19 -06:00