[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 03/10] daemon: Subscribe the stream event callback for error events.



This patch subscribes the daemon-side event callback for error and
hangup events. The functionality to handle them is already implemented
in the callback.
---
 daemon/stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/stream.c b/daemon/stream.c
index 7df9952..5ec899c 100644
--- a/daemon/stream.c
+++ b/daemon/stream.c
@@ -77,7 +77,7 @@ daemonStreamHandleAbort(virNetServerClientPtr client,
 static void
 daemonStreamUpdateEvents(daemonClientStream *stream)
 {
-    int newEvents = 0;
+    int newEvents = VIR_STREAM_EVENT_HANGUP | VIR_STREAM_EVENT_ERROR;
     if (stream->rx)
         newEvents |= VIR_STREAM_EVENT_WRITABLE;
     if (stream->tx && !stream->recvEOF)
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]