Skip to main content

unlink_socket_if_exists

Function unlink_socket_if_exists 

Source
pub async fn unlink_socket_if_exists(path: &Path) -> Result<()>
Expand description

Best-effort cleanup helper: unlinks path if present, ignoring NotFound.

Useful for tests and graceful-shutdown paths to keep socket detritus out of /tmp.