summaryrefslogtreecommitdiff
path: root/include/vm_websocket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vm_websocket.hpp')
-rw-r--r--include/vm_websocket.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 2a0353be32..6b7d9e7a9f 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -42,7 +42,7 @@ class Handler : public std::enable_shared_from_this<Handler>
// boost::process::child::terminate uses SIGKILL, need to send SIGTERM
// to allow the proxy to stop nbd-client and the USB device gadget.
int rc = kill(proxy.id(), SIGTERM);
- if (rc)
+ if (rc != 0)
{
return;
}