OSDN Git Service

netd: all: use system() instead of logwrap() for now.
authorJP Abgrall <jpa@google.com>
Thu, 11 Aug 2011 22:34:49 +0000 (15:34 -0700)
committerJP Abgrall <jpa@google.com>
Fri, 12 Aug 2011 00:00:54 +0000 (17:00 -0700)
commit11b4e9b26fe7b878992162afb39f5a8acfd143ed
treea8467f7c922410701022854da403b5de551795cd
parent6ccebd085f8df439447ffe6060206a0a5af8d448
netd: all: use system() instead of logwrap() for now.

The logwrapper uses a blocking read() which does not always
correctly detect when the child process at the other end is gone.
This is a quick workaround for http://b/5144246
A cleaner logwrapper parent() will follow.

Add support for BandwidthController() to use either system() or
logwrap(). It looks at "persist.bandwidth.uselogwrap" to be 0 or 1.

Change-Id: I2d17732214f1a7fef6838eee05d827695b707ab0
Signed-off-by: JP Abgrall <jpa@google.com>
BandwidthController.cpp
BandwidthController.h
NatController.cpp
ThrottleController.cpp