diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2013-02-27 18:41:44 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2013-03-14 11:10:09 +0100 |
commit | 59a17d8b095f1e14e2ef2a32c09e3a969f1937cd (patch) | |
tree | f6f634627e9bc50e852b2832301ab2643c24d59c | |
parent | df2cbfac026d39552959f1421f4a1ecc9a4ebf91 (diff) |
win support in generic controller cod
-rw-r--r-- | SpiceXPI/src/plugin/controller.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/SpiceXPI/src/plugin/controller.cpp b/SpiceXPI/src/plugin/controller.cpp index ccef1d4..ac97ce1 100644 --- a/SpiceXPI/src/plugin/controller.cpp +++ b/SpiceXPI/src/plugin/controller.cpp @@ -97,6 +97,21 @@ int SpiceController::Connect(const int nRetries) g_usleep(sleep_time * G_USEC_PER_SEC); ++sleep_time; } + if (rc != 0) { + g_warning("error connecting"); + g_assert(m_pipe == NULL); + } + if (!CheckPipe()) { + g_warning("Pipe validation failure"); + g_warn_if_fail(m_pipe == NULL); + } + if (m_pipe == NULL) { + g_warning("failed to create pipe"); +#ifdef XP_WIN + rc = MAKE_HRESULT(1, FACILITY_CREATE_RED_PIPE, GetLastError()); +#endif + this->StopClient(); + } return rc; } |