[spice-xpi] fix updating connected status

Peter Hatina phatina at fedoraproject.org
Wed Jun 6 14:17:19 UTC 2012


commit 1e5a25588fae8e766ca505365497a470ec8b09ee
Author: Peter Hatina <phatina at redhat.com>
Date:   Wed Jun 6 16:14:21 2012 +0200

    fix updating connected status

 spice-xpi-01-connected-status.patch |   12 ++++++++++++
 spice-xpi.spec                      |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/spice-xpi-01-connected-status.patch b/spice-xpi-01-connected-status.patch
new file mode 100644
index 0000000..3c99bd9
--- /dev/null
+++ b/spice-xpi-01-connected-status.patch
@@ -0,0 +1,12 @@
+diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
+index 816ac63..d3f7d30 100644
+--- a/SpiceXPI/src/plugin/plugin.cpp
++++ b/SpiceXPI/src/plugin/plugin.cpp
+@@ -752,6 +752,7 @@ void nsPluginInstance::SigchldRoutine(int sig, siginfo_t *info, void *uap)
+     waitpid(info->si_pid, &exit_code, 0);
+ 
+     nsPluginInstance *fake_this = s_children[info->si_pid];
++    fake_this->m_connected_status = fake_this->m_external_controller.TranslateRC(exit_code);
+     fake_this->CallOnDisconnected(exit_code);
+     fake_this->m_external_controller.Disconnect();
+     s_children.erase(info->si_pid);
diff --git a/spice-xpi.spec b/spice-xpi.spec
index 1f2b946..fcb8f59 100644
--- a/spice-xpi.spec
+++ b/spice-xpi.spec
@@ -1,11 +1,12 @@
 Name:           spice-xpi
 Version:        2.7
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        SPICE extension for Mozilla
 Group:          Applications/Internet
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 URL:            http://spice-space.org
 Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
+Patch0:         spice-xpi-01-connected-status.patch
 
 BuildRequires:  log4cpp-devel
 BuildRequires:  xulrunner-devel >= 8.0
@@ -21,6 +22,7 @@ Spice extension for Mozilla allows the client to be used from a web browser.
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch0 -p1
 
 %build
 
@@ -40,6 +42,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %exclude %{_libdir}/mozilla/plugins/*.la
 
 %changelog
+* Wed Jun 06 2012 Peter Hatina <phatina at redhat.com> 2.7-2
+- Fix updating connected status
+
 * Mon Jan 30 2012 Peter Hatina <phatina at redhat.com> 2.7-1
 - Update to 2.7
 


More information about the scm-commits mailing list