commit | 36ecbf3517ec0a742a9353531472c5ca77513903 | [log] [tgz] |
---|---|---|
author | Troy Lee <troy_lee@aspeedtech.com> | Tue Aug 17 18:15:28 2021 +0800 |
committer | Ed Tanous <ed@tanous.net> | Tue Feb 28 00:29:15 2023 +0000 |
tree | 724334378d8a6d926a15a14fcced4e5e7a173cc8 | |
parent | 5c3e927283e32e1633ccd409f34ee17fab626ca1 [diff] |
Fixing blocking system call to async mode Signed-off-by: Troy Lee <troy_lee@aspeedtech.com> Change-Id: Id81db4d512b5ea1222a145dc2b9e9907e8b0f084
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp index 188bcf2..89270d9 100644 --- a/include/vm_websocket.hpp +++ b/include/vm_websocket.hpp
@@ -46,8 +46,10 @@ int rc = kill(proxy.id(), SIGTERM); if (rc != 0) { + BMCWEB_LOG_ERROR << "Failed to terminate nbd-proxy: " << errno; return; } + proxy.wait(); }