diff options
| author | Rob Landley <rob@landley.net> | 2015-05-03 20:18:53 -0500 |
|---|---|---|
| committer | Rob Landley <rob@landley.net> | 2015-05-03 20:18:53 -0500 |
| commit | 483cfdabaf6ab282987a0a21d6177c3daa95dc12 (patch) | |
| tree | a835adbacadfa5d2db3d17227038eed94350d11d | |
| parent | 8b6bff527b7684c009e3a817d993818b075c590c (diff) | |
| download | toybox-483cfdabaf6ab282987a0a21d6177c3daa95dc12.tar.gz | |
Replace android-specific hack with just signal(SIGPIPE, SIG_IGN).
| -rw-r--r-- | main.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -183,16 +183,10 @@ void toybox_main(void) xputc('\n'); } -static void shutup_sigpipe(int i) -{ - // exit success from sigpipe to mollify overzealous crash reporting. - _exit(0); -} - int main(int argc, char *argv[]) { - if (CFG_TOYBOX_ON_ANDROID) signal(SIGPIPE, shutup_sigpipe); - else signal(SIGPIPE, SIG_IGN); + // We check our own stdout errors, disable sigpipe killer + signal(SIGPIPE, SIG_IGN); if (CFG_TOYBOX) { // Trim path off of command name |
