<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/logwrapper/include, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Logwrapper: Remove unused support for input / output processing.</title>
<updated>2017-03-22T11:00:43+00:00</updated>
<author>
<name>Narayan Kamath</name>
<email>narayan@google.com</email>
</author>
<published>2017-03-22T10:26:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=abd4613f05664510951a55b76e2061f729b51b7c'/>
<id>abd4613f05664510951a55b76e2061f729b51b7c</id>
<content type='text'>
Should make it easier to switch callers over to posix_spawn once
that's available.

NOTE: The (now) unused arguments will be removed in a followup (multi-project)c
hange once we empirically confirm that there aren't any prebuilt blobs
using this function. I did readelf all currently checked in prebuilts to look
for a reference to this method, but one can never be too paranoid.

Test: make checkbuild
Change-Id: I454d80c52f269c31846133cc54375decd702fe71
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Should make it easier to switch callers over to posix_spawn once
that's available.

NOTE: The (now) unused arguments will be removed in a followup (multi-project)c
hange once we empirically confirm that there aren't any prebuilt blobs
using this function. I did readelf all currently checked in prebuilts to look
for a reference to this method, but one can never be too paranoid.

Test: make checkbuild
Change-Id: I454d80c52f269c31846133cc54375decd702fe71
</pre>
</div>
</content>
</entry>
<entry>
<title>Add FORK_EXECVP_OPTION_CAPTURE_OUTPUT to logwrap.h</title>
<updated>2015-08-22T00:14:59+00:00</updated>
<author>
<name>Yusuke Sato</name>
<email>yusukes@google.com</email>
</author>
<published>2015-08-20T06:58:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=7980426a6ffb35567c8a7b83fe0acef2c3033bd4'/>
<id>7980426a6ffb35567c8a7b83fe0acef2c3033bd4</id>
<content type='text'>
This allows raw popen calls in e.g. system/netd/ to be replaced
with android_fork_execvp_ext().

Change-Id: I159ece7369fa38ff8782024bef0d7cfafe74ecee
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows raw popen calls in e.g. system/netd/ to be replaced
with android_fork_execvp_ext().

Change-Id: I159ece7369fa38ff8782024bef0d7cfafe74ecee
</pre>
</div>
</content>
</entry>
<entry>
<title>Add |opts| argument to android_fork_execvp_ext</title>
<updated>2015-08-19T18:00:37+00:00</updated>
<author>
<name>Yusuke Sato</name>
<email>yusukes@google.com</email>
</author>
<published>2015-08-14T08:22:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d81c3c6c45e572365127b73594c0ccf0b7f86f17'/>
<id>d81c3c6c45e572365127b73594c0ccf0b7f86f17</id>
<content type='text'>
to allow the caller to send data to the child's stdin.

Bug: 21725996
Change-Id: I818f5cf61045286c8d64a91b6d50f05740329be1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to allow the caller to send data to the child's stdin.

Bug: 21725996
Change-Id: I818f5cf61045286c8d64a91b6d50f05740329be1
</pre>
</div>
</content>
</entry>
<entry>
<title>Create a separate copy of the fsck logs</title>
<updated>2013-09-21T00:44:33+00:00</updated>
<author>
<name>Ken Sumrall</name>
<email>ksumrall@android.com</email>
</author>
<published>2013-09-19T00:49:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=4eaf905858c6a1d7cf0639bed3e8de3bd7987646'/>
<id>4eaf905858c6a1d7cf0639bed3e8de3bd7987646</id>
<content type='text'>
The log_target parameter of android_fork_execvp_ext() is now a
bit field, and multiple targets can be set to log to multiple
places at the same time.

The new target LOG_FILE will log to a file specified by the new
parameter file_path.

Set LOG_FILE and log to a file in /dev (the only writable filesystem
avilable when e2fsck runs) when invoking e2fsck in fs_mgr.

Bug: 10021342

Change-Id: I63baf644cc8c3afccc8345df27a74203b44d0400
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The log_target parameter of android_fork_execvp_ext() is now a
bit field, and multiple targets can be set to log to multiple
places at the same time.

The new target LOG_FILE will log to a file specified by the new
parameter file_path.

Set LOG_FILE and log to a file in /dev (the only writable filesystem
avilable when e2fsck runs) when invoking e2fsck in fs_mgr.

Bug: 10021342

Change-Id: I63baf644cc8c3afccc8345df27a74203b44d0400
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrapper: Add ability to log to kernel log</title>
<updated>2013-04-15T00:10:55+00:00</updated>
<author>
<name>Ken Sumrall</name>
<email>ksumrall@android.com</email>
</author>
<published>2013-04-03T20:45:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=96e11b5bc473918d61b088f1840e4d1ec48fd3ab'/>
<id>96e11b5bc473918d61b088f1840e4d1ec48fd3ab</id>
<content type='text'>
Also add ability to do abbreviated logging where only the first
4K bytes and last 4K bytes of output are added to the desginated log.

Also update standalog logwrapper command to support the new options.

Change-Id: Ia49cbe58479b9f9ed077498d6852e20b21287bad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also add ability to do abbreviated logging where only the first
4K bytes and last 4K bytes of output are added to the desginated log.

Also update standalog logwrapper command to support the new options.

Change-Id: Ia49cbe58479b9f9ed077498d6852e20b21287bad
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrap: Change semantics of NULL status in android_fork_execvp</title>
<updated>2013-02-08T17:37:52+00:00</updated>
<author>
<name>Rom Lemarchand</name>
<email>romlem@google.com</email>
</author>
<published>2013-02-07T23:43:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2f34c5033e21fed358a0e07b07c201dc943a1b5d'/>
<id>2f34c5033e21fed358a0e07b07c201dc943a1b5d</id>
<content type='text'>
When passing a NULL status to android_fork_execvp the return
status will now be the return value of the child if it exited
properly, otherwise a non-0 value will be returned.

Change-Id: I13309c61b37b6b3f9d5507f7d6484e7b6baaf8d0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When passing a NULL status to android_fork_execvp the return
status will now be the return value of the child if it exited
properly, otherwise a non-0 value will be returned.

Change-Id: I13309c61b37b6b3f9d5507f7d6484e7b6baaf8d0
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrapper: rename logwrap() to android_fork_execvp()</title>
<updated>2013-01-30T20:26:05+00:00</updated>
<author>
<name>Rom Lemarchand</name>
<email>romlem@google.com</email>
</author>
<published>2013-01-29T19:44:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=2a46bfa6b9401b847a3c0609e247428564d91121'/>
<id>2a46bfa6b9401b847a3c0609e247428564d91121</id>
<content type='text'>
Also change the quiet flag to a logwrap flag (inverses the meaning of
the boolean).

Change-Id: I76047a7b460f4c28d52f26bfe3f65889d96047f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also change the quiet flag to a logwrap flag (inverses the meaning of
the boolean).

Change-Id: I76047a7b460f4c28d52f26bfe3f65889d96047f8
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrap: add quiet flag to logwrap()</title>
<updated>2013-01-29T00:14:20+00:00</updated>
<author>
<name>Rom Lemarchand</name>
<email>romlem@google.com</email>
</author>
<published>2013-01-24T18:57:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=f5200c075098a6fb6a69ac4e2baa2fdd3809cbbd'/>
<id>f5200c075098a6fb6a69ac4e2baa2fdd3809cbbd</id>
<content type='text'>
Add a quiet flag to the logwrap function that prevents messages from
getting logged.

Change-Id: Ic56c011fb608babae32b03900b955833a6bdd070
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a quiet flag to the logwrap function that prevents messages from
getting logged.

Change-Id: Ic56c011fb608babae32b03900b955833a6bdd070
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrap: wait for child process when receiving SIGINT or SIGQUIT</title>
<updated>2013-01-29T00:04:50+00:00</updated>
<author>
<name>Rom Lemarchand</name>
<email>romlem@google.com</email>
</author>
<published>2013-01-09T18:20:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=75c289aab9b81dc2235680cf141a4b183ee49391'/>
<id>75c289aab9b81dc2235680cf141a4b183ee49391</id>
<content type='text'>
- Wait for the child to exit before propagating SIGINT and SIGQUIT
to the parent
- Add ignore_int_quit argument to logwrap() that gives the caller the
option to ignore SIGINT and SIGQUIT while logwrap is running

Change-Id: If5c96cf23094917211310f00aa6aed515f110f5b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Wait for the child to exit before propagating SIGINT and SIGQUIT
to the parent
- Add ignore_int_quit argument to logwrap() that gives the caller the
option to ignore SIGINT and SIGQUIT while logwrap is running

Change-Id: If5c96cf23094917211310f00aa6aed515f110f5b
</pre>
</div>
</content>
</entry>
<entry>
<title>logwrapper: prevent logwrap from hanging when child dies</title>
<updated>2013-01-14T19:11:58+00:00</updated>
<author>
<name>Rom Lemarchand</name>
<email>romlem@google.com</email>
</author>
<published>2013-01-10T05:31:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=b58a82295529e775fbb900ecfb2d9104b2dafdc1'/>
<id>b58a82295529e775fbb900ecfb2d9104b2dafdc1</id>
<content type='text'>
Sometimes the read on the PTY can wait indefinitely if the child
dies. By using a poll statement that monitors both the output
of the child and its state we prevent this from happening.

Change-Id: I51d5556c66f039bca673145ca72db262977e1689
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sometimes the read on the PTY can wait indefinitely if the child
dies. By using a poll statement that monitors both the output
of the child and its state we prevent this from happening.

Change-Id: I51d5556c66f039bca673145ca72db262977e1689
</pre>
</div>
</content>
</entry>
</feed>
