am 05f257fe
: Merge "Ignore SIGPIPE is some of the tools used via bugreport" into jb-dev
* commit '05f257febc28a4d891dde6f66a431631c58815d1': Ignore SIGPIPE is some of the tools used via bugreport
This commit is contained in:
commit
4c24461035
@ -311,6 +311,8 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
ALOGI("begin\n");
|
ALOGI("begin\n");
|
||||||
|
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
/* set as high priority, and protect from OOM killer */
|
/* set as high priority, and protect from OOM killer */
|
||||||
setpriority(PRIO_PROCESS, 0, -20);
|
setpriority(PRIO_PROCESS, 0, -20);
|
||||||
FILE *oom_adj = fopen("/proc/self/oom_adj", "w");
|
FILE *oom_adj = fopen("/proc/self/oom_adj", "w");
|
||||||
|
@ -28,6 +28,7 @@ static int sort_func(const String16* lhs, const String16* rhs)
|
|||||||
|
|
||||||
int main(int argc, char* const argv[])
|
int main(int argc, char* const argv[])
|
||||||
{
|
{
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
sp<IServiceManager> sm = defaultServiceManager();
|
sp<IServiceManager> sm = defaultServiceManager();
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
if (sm == NULL) {
|
if (sm == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user