diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-18 16:09:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-31 16:21:54 +0100 |
commit | c4974e7c3c948d692be397448698d0d3c0670704 (patch) | |
tree | 81b979e572c5a9f225389cb95243dc2cf3a83e82 /src/selftest/routingtable.h | |
parent | d0646b6d88ca54240c61f36255d5684904ca98c3 (diff) |
netns: use read built-in instead of ncat hack for dmesg
This misses lines that are greater than 128 bytes -- read returns
-EINVAL -- but the lines we care about anyway are less than that, so we
simply keep looping and skip the bad reads when this happens. Not ideal,
but probably the best we can do in pure bash.
And, importantly, it's much better than streaming this over a TCP
socket, which was an even uglier hack.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/selftest/routingtable.h')
0 files changed, 0 insertions, 0 deletions