Don't use MSG_DONTWAIT in wl_connection_flush.

This commit is contained in:
Adam Jackson 2013-10-07 13:47:54 -04:00
parent 69b08adcbb
commit f48a9b801e
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -up wayland-1.2.0/src/connection.c.jx wayland-1.2.0/src/connection.c
--- wayland-1.2.0/src/connection.c.jx 2013-07-12 21:52:33.000000000 -0400
+++ wayland-1.2.0/src/connection.c 2013-10-07 13:30:40.418925754 -0400
@@ -283,8 +283,7 @@ wl_connection_flush(struct wl_connection
msg.msg_flags = 0;
do {
- len = sendmsg(connection->fd, &msg,
- MSG_NOSIGNAL | MSG_DONTWAIT);
+ len = sendmsg(connection->fd, &msg, MSG_NOSIGNAL);
} while (len == -1 && errno == EINTR);
if (len == -1)

View File

@ -2,7 +2,7 @@
Name: wayland Name: wayland
Version: 1.2.0 Version: 1.2.0
Release: 2%{?gitdate:.%{gitdate}}%{?dist} Release: 3%{?gitdate:.%{gitdate}}%{?dist}
Summary: Wayland Compositor Infrastructure Summary: Wayland Compositor Infrastructure
Group: User Interface/X Group: User Interface/X
@ -14,6 +14,10 @@ Source0: wayland-%{gitdate}.tar.bz2
Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz Source0: http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
%endif %endif
Source1: make-git-snapshot.sh Source1: make-git-snapshot.sh
# If this code throws -EAGAIN then wl_proxy_marshal can die, and take your
# Xwayland server (and thus session) with it. Probably wants to be solved
# in some other way, but this will do for now.
Patch0: wayland-1.2.0-blocking-flush.patch
BuildRequires: autoconf automake libtool BuildRequires: autoconf automake libtool
BuildRequires: doxygen BuildRequires: doxygen
@ -82,6 +86,7 @@ Headers and symlinks for developing wayland server applications.
%prep %prep
%setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}} %setup -q -n %{name}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
%patch1 -p1 -b .flush
%build %build
autoreconf -v --install autoreconf -v --install
@ -152,6 +157,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/wayland-server.pc %{_libdir}/pkgconfig/wayland-server.pc
%changelog %changelog
* Mon Oct 07 2013 Adam Jackson <ajax@redhat.com> 1.2.0-3
- Don't use MSG_DONTWAIT in wl_connection_flush.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild