summaryrefslogtreecommitdiff
path: root/include/vm_websocket.hpp
diff options
context:
space:
mode:
authorTroy Lee <troy_lee@aspeedtech.com>2021-08-17 13:15:28 +0300
committerEd Tanous <ed@tanous.net>2023-02-28 03:29:15 +0300
commit36ecbf3517ec0a742a9353531472c5ca77513903 (patch)
tree724334378d8a6d926a15a14fcced4e5e7a173cc8 /include/vm_websocket.hpp
parent5c3e927283e32e1633ccd409f34ee17fab626ca1 (diff)
downloadbmcweb-36ecbf3517ec0a742a9353531472c5ca77513903.tar.xz
Fixing blocking system call to async mode
Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Change-Id: Id81db4d512b5ea1222a145dc2b9e9907e8b0f084
Diffstat (limited to 'include/vm_websocket.hpp')
-rw-r--r--include/vm_websocket.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 188bcf2ad3..89270d90fb 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -46,8 +46,10 @@ class Handler : public std::enable_shared_from_this<Handler>
int rc = kill(proxy.id(), SIGTERM);
if (rc != 0)
{
+ BMCWEB_LOG_ERROR << "Failed to terminate nbd-proxy: " << errno;
return;
}
+
proxy.wait();
}