<feed xmlns='http://www.w3.org/2005/Atom'>
<title>p11-kit.git/common, branch p11p</title>
<subtitle>Clone of https://github.com/p11-glue/p11-kit</subtitle>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/'/>
<entry>
<title>build: Declare dependency chain between static libs in common</title>
<updated>2019-06-19T13:59:01+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-19T13:36:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=787888e181543f5a85eb69d6a3caf14f9a4262b2'/>
<id>787888e181543f5a85eb69d6a3caf14f9a4262b2</id>
<content type='text'>
In common/ there are sub-libraries namely libp11-common.a,
libp11-library.a, libp11-tool.a, and libp11-test.a.

All the latter 3 libs use the symbols from libp11-common.a, it would
make sense to declare a dependency against it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In common/ there are sub-libraries namely libp11-common.a,
libp11-library.a, libp11-tool.a, and libp11-test.a.

All the latter 3 libs use the symbols from libp11-common.a, it would
make sense to declare a dependency against it.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Make threads dependency more explicit</title>
<updated>2019-06-19T13:59:01+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-19T13:31:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=eb5eb7aea7fc41a2c15d853cd57c7c030644f4ee'/>
<id>eb5eb7aea7fc41a2c15d853cd57c7c030644f4ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Add meson build support</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-05-15T11:09:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=4f956698b64ac6eb8e5e8b7d143ceb11f1133814'/>
<id>4f956698b64ac6eb8e5e8b7d143ceb11f1133814</id>
<content type='text'>
This adds support for meson as an alternative build system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds support for meson as an alternative build system.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Move check_PROGRAMS into subdirectories</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-01T10:51:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=084347319f6e832ec2c36d7b27a64c8f2614f084'/>
<id>084347319f6e832ec2c36d7b27a64c8f2614f084</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Add tmpdir argument to p11_test_copy_setgid</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-01T07:17:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=6bebd5747aa49d4a124d23d4967f65a771799fe5'/>
<id>6bebd5747aa49d4a124d23d4967f65a771799fe5</id>
<content type='text'>
To prevent BUILDDIR being embedded in the library.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To prevent BUILDDIR being embedded in the library.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Skip tests calling getauxval(AT_SECURE) if binary is on /tmp</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-03T01:33:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=9c2022d292c00ccbe2413b53b7c91cf4ba4d7c14'/>
<id>9c2022d292c00ccbe2413b53b7c91cf4ba4d7c14</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>common: Make issetugid check simpler</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-03T09:28:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=045d7546fc317deefc2d84d524a211ce6ab4869b'/>
<id>045d7546fc317deefc2d84d524a211ce6ab4869b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>common: Fix vasprintf emulation</title>
<updated>2019-06-18T12:17:28+00:00</updated>
<author>
<name>Daiki Ueno</name>
<email>dueno@redhat.com</email>
</author>
<published>2019-06-02T08:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=bbb7f046ff430d33267487cb6f8a0e24d2eab832'/>
<id>bbb7f046ff430d33267487cb6f8a0e24d2eab832</id>
<content type='text'>
va_list must be saved when calling vsnprintf() in a loop.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
va_list must be saved when calling vsnprintf() in a loop.
</pre>
</div>
</content>
</entry>
<entry>
<title>rpc: On UNIX wait on condition variable instead of FD if header is for a different thread.</title>
<updated>2019-06-14T10:54:41+00:00</updated>
<author>
<name>Simon Haggett</name>
<email>simon.haggett@gmail.com</email>
</author>
<published>2019-06-13T16:00:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=5fc2d67b5ebb3daddb350d7ac60ede74dd99fcc6'/>
<id>5fc2d67b5ebb3daddb350d7ac60ede74dd99fcc6</id>
<content type='text'>
If rpc_socket_read() receives a header for a different thread, it tries to yield by
releasing the read mutex and waiting on the socket's read FD. On Linux systems, this has
been observed to cause a performance problem in cases where multiple threads are being
used. Threads expecting a different header can rapidly unlock and relock the read mutex,
as they resume when sock-&gt;read_code hasn't changed. This can result in contention on the
read mutex, which delays the thread that is expecting to consume the header.

This fix updates rpc_socket_read() on UNIX to wait on a condition variable instead of the
socket's read FD. The condition variable is signalled when sock-&gt;read_code changes. This
allows waiting threads to only resume once the header and payload have been consumed by
their target thread. This fix only targets UNIX platforms, as the Windows version that
p11-kit targets by default (Windows 2000) does not provide support for condition
variables.

Signed-off-by: Simon Haggett &lt;simon.haggett@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If rpc_socket_read() receives a header for a different thread, it tries to yield by
releasing the read mutex and waiting on the socket's read FD. On Linux systems, this has
been observed to cause a performance problem in cases where multiple threads are being
used. Threads expecting a different header can rapidly unlock and relock the read mutex,
as they resume when sock-&gt;read_code hasn't changed. This can result in contention on the
read mutex, which delays the thread that is expecting to consume the header.

This fix updates rpc_socket_read() on UNIX to wait on a condition variable instead of the
socket's read FD. The condition variable is signalled when sock-&gt;read_code changes. This
allows waiting threads to only resume once the header and payload have been consumed by
their target thread. This fix only targets UNIX platforms, as the Windows version that
p11-kit targets by default (Windows 2000) does not provide support for condition
variables.

Signed-off-by: Simon Haggett &lt;simon.haggett@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Win32 p11_dl_error crash</title>
<updated>2019-03-10T10:02:12+00:00</updated>
<author>
<name>Tom Sutcliffe</name>
<email>tomsci@me.com</email>
</author>
<published>2019-03-09T13:41:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sunet.se/p11-kit.git/commit/?id=cbe95e35f8309493094c93d882d0c18e8063f292'/>
<id>cbe95e35f8309493094c93d882d0c18e8063f292</id>
<content type='text'>
Caused by returning a buffer that wasn't allocated with malloc and
needed to be freed with LocalFree() instead. The fix is to strdup
msg_buf so what's returned can be free()d.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Caused by returning a buffer that wasn't allocated with malloc and
needed to be freed with LocalFree() instead. The fix is to strdup
msg_buf so what's returned can be free()d.
</pre>
</div>
</content>
</entry>
</feed>
