<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nx-libs/nx-X11/lib, branch 3.5.99.12</title>
<subtitle>NXv3 (redistributed) 
</subtitle>
<id>https://cgit.arctica-project.org/nx-libs/atom?h=3.5.99.12</id>
<link rel='self' href='https://cgit.arctica-project.org/nx-libs/atom?h=3.5.99.12'/>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/'/>
<updated>2017-12-14T09:40:32+00:00</updated>
<entry>
<title>lib/X11/Xrm.c: Compiler warning fix: logical-not-parentheses</title>
<updated>2017-12-14T09:40:32+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-03-17T14:06:15+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=ac6a216c584532e9fa3c4ef90c0e2eb03528ad55'/>
<id>urn:sha1:ac6a216c584532e9fa3c4ef90c0e2eb03528ad55</id>
<content type='text'>
 Xrm.c: In function 'PutEntry':
 Xrm.c:900:15: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
     !quarks[2] != table-&gt;leaf)
               ^~
</content>
</entry>
<entry>
<title>Silence warning: "ar: 'u' modifier ignored since 'D' is the default"</title>
<updated>2017-12-11T08:48:14+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-12-10T17:00:15+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=018c557c454ffe62696c4d113c7fe3794845dc2a'/>
<id>urn:sha1:018c557c454ffe62696c4d113c7fe3794845dc2a</id>
<content type='text'>
Fixes ArcticaProject/nx-libs#530
</content>
</entry>
<entry>
<title>Xtranssock.c: simplify code in SocketWritev</title>
<updated>2017-12-11T08:45:06+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-12-10T20:36:15+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=0eb1dc67d363032e76076aa4d01cf0615f8eb092'/>
<id>urn:sha1:0eb1dc67d363032e76076aa4d01cf0615f8eb092</id>
<content type='text'>
Code was here twice and could be simply merged.
</content>
</entry>
<entry>
<title>nx-X11/lib/include/xtrans/Xtranssock.c: drop UNIX path overrides as well.</title>
<updated>2017-11-22T05:16:04+00:00</updated>
<author>
<name>Mihai Moldovan</name>
<email>ionic@ionic.de</email>
</author>
<published>2017-11-22T05:16:01+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=df9b5306e080797f142b20bc3eedc502eff97871'/>
<id>urn:sha1:df9b5306e080797f142b20bc3eedc502eff97871</id>
<content type='text'>
Was missed in
GH PR #544: https://github.com/ArcticaProject/nx-libs/pull/544

Fixes: ArcticaProject/nx-libs#536
</content>
</entry>
<entry>
<title>.gitignore: Improve all .gitignore files, adapt to autotools build-flow and its build cruft.</title>
<updated>2017-10-09T10:52:01+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-10-09T10:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=27c14b4eb3e42e1da2a3954393507b1ea4614462'/>
<id>urn:sha1:27c14b4eb3e42e1da2a3954393507b1ea4614462</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert nx-X11/lib/ build flow from imake to autotools.</title>
<updated>2017-08-25T08:06:49+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-07-21T10:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c350873c7c977efe5210484f04160be45f84ba7e'/>
<id>urn:sha1:c350873c7c977efe5210484f04160be45f84ba7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nxcomp: Switch to autoreconf.</title>
<updated>2017-07-26T08:12:43+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-06-30T18:13:51+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=f76c82403888bb498973ec974dbfd20e4edb02fe'/>
<id>urn:sha1:f76c82403888bb498973ec974dbfd20e4edb02fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>nxcompshad: Switch to autoreconf.</title>
<updated>2017-07-13T09:38:42+00:00</updated>
<author>
<name>Mike Gabriel</name>
<email>mike.gabriel@das-netzwerkteam.de</email>
</author>
<published>2017-04-25T13:27:17+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=76b48676844bc7aa0511b8371ef6347b2e8ad545'/>
<id>urn:sha1:76b48676844bc7aa0511b8371ef6347b2e8ad545</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove _X_DEPRECATED for XKeycodeToKeysym</title>
<updated>2017-05-04T21:50:17+00:00</updated>
<author>
<name>Ulrich Sibiller</name>
<email>uli42@gmx.de</email>
</author>
<published>2017-05-04T21:35:30+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=c59710e8eb2d641b0f14d99a4ed14399a0cc7ac5'/>
<id>urn:sha1:c59710e8eb2d641b0f14d99a4ed14399a0cc7ac5</id>
<content type='text'>
We need that function for performance reasons. By removing
_X_DEPRECATED we get rid of compiler warnings.
</content>
</entry>
<entry>
<title>_XDefaultError: set XlibDisplayIOError flag before calling exit</title>
<updated>2017-03-26T14:54:20+00:00</updated>
<author>
<name>Arthur Huillet</name>
<email>ahuillet@nvidia.com</email>
</author>
<published>2017-02-01T14:02:41+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.arctica-project.org/nx-libs/commit/?id=00405b278471b4b5aa65003eb7ae97ac17d56445'/>
<id>urn:sha1:00405b278471b4b5aa65003eb7ae97ac17d56445</id>
<content type='text'>
_XReply isn't reentrant, and it can lead to deadlocks when the default error
handler is called: _XDefaultError calls exit(1). It is called indirectly by
_XReply when a X protocol error comes in that isn't filtered/handled by an
extension or the application. This means that if the application (or one of its
loaded shared libraries such as the NVIDIA OpenGL driver) has registered any
_fini destructor, _fini will get called while still on the call stack of
_XReply. If the destructor interacts with the X server and calls _XReply, it
will hit a deadlock, looping on the following in _XReply:

    ConditionWait(dpy, dpy-&gt;xcb-&gt;reply_notify);

It is legal for an application to make Xlib calls during _fini, and that is
useful for an OpenGL driver to avoid resource leaks on the X server side, for
example in the dlopen/dlclose case. However, the driver can not readily tell
whether its _fini is being called because Xlib called exit, or for another
reason (dlclose), so it is hard to cleanly work around this issue in the driver.

This change makes it so _XReply effectively becomes a no-op when called after
_XDefaultError was called, as though an XIOError had happened. The dpy
connection isn't broken at that point, but any call to _XReply is going to hang.
This is a bit of a kludge, because the more correct solution would be to make
_XReply reentrant, maybe by broadcasting the reply_notify condition before
calling the default error handler. However, such a change would carry a grater
risk of introducing regressions in Xlib.

This change will drop some valid requests on the floor, but this should not
matter, as it will only do so in the case where the application is dying: X will
clean up after it once exit() is done running. There is the case of
XSetCloseDownMode(RETAIN_PERMANENT), but an application using that and wishing
to clean up resources in _fini would currently be hitting a deadlock, which is
hardly a better situation.

Signed-off-by: Aaron Plattner &lt;aplattner@nvidia.com&gt;
Reviewed-by: Jamey Sharp &lt;jamey@minilop.net&gt;
</content>
</entry>
</feed>
