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");
|
||||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
/* set as high priority, and protect from OOM killer */
|
||||
setpriority(PRIO_PROCESS, 0, -20);
|
||||
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[])
|
||||
{
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
sp<IServiceManager> sm = defaultServiceManager();
|
||||
fflush(stdout);
|
||||
if (sm == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user