diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/vm_websocket.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp index b489a4265f..7e55e4ec8c 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp @@ -449,7 +449,9 @@ inline void // If the socket file exists (i.e. after bmcweb crash), // we cannot reuse it. - std::remove(socket.c_str()); + std::error_code ec2; + std::filesystem::remove(socket.c_str(), ec2); + // Ignore failures. File might not exist. sessions[&conn] = std::make_shared<NbdProxyServer>(conn, socket, endpointId, path); |