<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/kernel, branch sverker-ets-patch-1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Merge branch 'raimo/receive-TOS-TCLASS/ERIERL-187/OTP-15145' into maint</title>
<updated>2018-09-17T13:42:01+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2018-09-17T13:42:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=d6a08843e473da6eebbab0b0e7312efc978108ee'/>
<id>d6a08843e473da6eebbab0b0e7312efc978108ee</id>
<content type='text'>
* raimo/receive-TOS-TCLASS/ERIERL-187/OTP-15145:
  Write testcases for recvtos and friends
  Fix term buffer overflow bug
  Fix documentation due to feedback
  Implement socket option recvtos and friends
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* raimo/receive-TOS-TCLASS/ERIERL-187/OTP-15145:
  Write testcases for recvtos and friends
  Fix term buffer overflow bug
  Fix documentation due to feedback
  Implement socket option recvtos and friends
</pre>
</div>
</content>
</entry>
<entry>
<title>Write testcases for recvtos and friends</title>
<updated>2018-09-17T13:39:33+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2018-09-05T14:36:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6053725bb54f7302d3698d0df100eb01c4df4f12'/>
<id>6053725bb54f7302d3698d0df100eb01c4df4f12</id>
<content type='text'>
Use os:type() and os:version() to predict if the individual options
are supposed to be supported.  We'll see if this holds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use os:type() and os:version() to predict if the individual options
are supposed to be supported.  We'll see if this holds.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'hasse/kernel/adjust_tests' into maint</title>
<updated>2018-09-17T10:59:15+00:00</updated>
<author>
<name>Hans Bolinder</name>
<email>hasse@erlang.org</email>
</author>
<published>2018-09-17T10:59:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=82db62ab096cffd29c7afce6894eece14d5e1390'/>
<id>82db62ab096cffd29c7afce6894eece14d5e1390</id>
<content type='text'>
* hasse/kernel/adjust_tests:
  kernel: Adjust disk_log tests
  kernel: Adjust global testcase
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* hasse/kernel/adjust_tests:
  kernel: Adjust disk_log tests
  kernel: Adjust global testcase
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Read config before terminating handler process</title>
<updated>2018-09-14T12:12:13+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-14T12:12:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=6073d37a5a0691704d0fa1a5ff9289ba9e35c8ed'/>
<id>6073d37a5a0691704d0fa1a5ff9289ba9e35c8ed</id>
<content type='text'>
When a handler process is terminated due to overload, it reads its
configuration from the configuration database, so it can be restarted
with the same configuration after a small delay. This was earlier done
in a different process, which was spawned off from the terminate
function. This caused a race condition, where in some cases, the
configuration was already removed before it could be read.

The reason for spawning off a process, is to avoid a deadlock due to
the call to logger:remove_handler/1.

This commit moves the call to logger:get_handler_config/1 back to the
handler process - to ensure that the data is still there, but keeps
the call to logger:remove_handler/1 in the spawned off process - to
avoid deadlock.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a handler process is terminated due to overload, it reads its
configuration from the configuration database, so it can be restarted
with the same configuration after a small delay. This was earlier done
in a different process, which was spawned off from the terminate
function. This caused a race condition, where in some cases, the
configuration was already removed before it could be read.

The reason for spawning off a process, is to avoid a deadlock due to
the call to logger:remove_handler/1.

This commit moves the call to logger:get_handler_config/1 back to the
handler process - to ensure that the data is still there, but keeps
the call to logger:remove_handler/1 in the spawned off process - to
avoid deadlock.
</pre>
</div>
</content>
</entry>
<entry>
<title>[error_logger] Handle report_cb with arity 2</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-11T09:18:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=48a1c458a46dcd1f031fd3b9689af80b32b4a6a2'/>
<id>48a1c458a46dcd1f031fd3b9689af80b32b4a6a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Include single_line option to report_cb</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-12T12:37:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a4ff9f378ae7008e268d1c2facd44d049be6e930'/>
<id>a4ff9f378ae7008e268d1c2facd44d049be6e930</id>
<content type='text'>
If the report callback function has two arguments, the second argument
is a map with options to limit the size of the log event. To even
allow a better formatting when the event shall be printed on a single
line, the new option single_line is now included in this
argument.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the report callback function has two arguments, the second argument
is a map with options to limit the size of the log event. To even
allow a better formatting when the event shall be printed on a single
line, the new option single_line is now included in this
argument.
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Check for deadlock when removing filters</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-11T12:11:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7140fe7679c1ea0862961d2fc34f9d8283c04ca3'/>
<id>7140fe7679c1ea0862961d2fc34f9d8283c04ca3</id>
<content type='text'>
If a filter fails, it is removed by a call to
logger:remove_filter/1,2. If the log event that caused the failure was
issued on the logger process itself, this would earlier cause a
deadlock due to a gen_server:call to self(). This is now prevented.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a filter fails, it is removed by a call to
logger:remove_filter/1,2. If the log event that caused the failure was
issued on the logger process itself, this would earlier cause a
deadlock due to a gen_server:call to self(). This is now prevented.
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Fix spec for handler callbacks to always return ok</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-07T14:49:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb'/>
<id>a98ffe831d2a1cf44d0b7c53e2d72ade9d5a3dbb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Increase timetrap timer for handler_requests_under_load test</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-07T12:38:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=eb29e06488ded39e657db655e09f04e95568eb76'/>
<id>eb29e06488ded39e657db655e09f04e95568eb76</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[logger] Improve code coverage in test</title>
<updated>2018-09-12T12:58:02+00:00</updated>
<author>
<name>Siri Hansen</name>
<email>siri@erlang.org</email>
</author>
<published>2018-09-06T12:30:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=625616652595249ff0866d4de8a04f3c8fa0eec4'/>
<id>625616652595249ff0866d4de8a04f3c8fa0eec4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
