diff options
author | Elliott Hughes <enh@google.com> | 2015-04-25 19:26:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-04-25 19:26:23 +0000 |
commit | cd58f488c263f5a1db9f7491d2aa062240765a6c (patch) | |
tree | 9395a48a48100f8f895a924bf8021fa6f55de4d6 /toolbox/top.c | |
parent | 5281a2a8e9df51cc7c5c17400dbeae6983818a38 (diff) | |
parent | 6ce5625d58c2376b719802a0ae0b56bcd3afcdc8 (diff) | |
download | system_core-cd58f488c263f5a1db9f7491d2aa062240765a6c.zip system_core-cd58f488c263f5a1db9f7491d2aa062240765a6c.tar.gz system_core-cd58f488c263f5a1db9f7491d2aa062240765a6c.tar.bz2 |
am 6ce5625d: Merge "Improve toolbox SIGPIPE behavior."
* commit '6ce5625d58c2376b719802a0ae0b56bcd3afcdc8':
Improve toolbox SIGPIPE behavior.
Diffstat (limited to 'toolbox/top.c')
-rw-r--r-- | toolbox/top.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/toolbox/top.c b/toolbox/top.c index b1a275c..1e99d4c 100644 --- a/toolbox/top.c +++ b/toolbox/top.c @@ -109,15 +109,9 @@ static int proc_thr_cmp(const void *a, const void *b); static int numcmp(long long a, long long b); static void usage(char *cmd); -static void exit_top(int signal) { - exit(EXIT_FAILURE); -} - int top_main(int argc, char *argv[]) { num_used_procs = num_free_procs = 0; - signal(SIGPIPE, exit_top); - max_procs = 0; delay = 3; iterations = -1; |