commit | 3d8df0e9c84d313bfe2ed7f88dccb984c041bac1 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Tue Sep 17 14:53:07 2019 +0100 |
committer | Siarhei Vishniakou <svv@google.com> | Tue Sep 17 15:31:45 2019 +0100 |
tree | 6d4ae76c9661dcf65cc4ef597db5a83665c8b1eb | |
parent | 061e0af271e6bccc5a32ab78b96b8f6dd667e12f [diff] |
Crash if too many open files If there are too many open files, and we can't dup a socket because we received EMFILE or ENFILE, let's crash immediately to make this problem obvious. Otherwise, we are simply propagating null pointers through the system and witness null pointer dereference later (in the good cases), or undefined behaviour. Bug: 141111452 Test: none Change-Id: I012bc050e5246456e00c22f0c17a5752b2708875