diff options
| author | gutteridge <gutteridge@NetBSD.org> | 2022-05-19 04:08:03 +0000 |
|---|---|---|
| committer | gutteridge <gutteridge@NetBSD.org> | 2022-05-19 04:08:03 +0000 |
| commit | cbcd1f0c172579dbb3eb4bdd8e7e83735704f442 (patch) | |
| tree | ab24d8e863cbf48b9ba0792b2f1bc6830e5fc4d9 /sys/dev | |
| parent | 2cae4f53fdf06766b552f053419c6b5b1b2b1c89 (diff) | |
apropos(1): improve error handling in edge cases
Patch from RVP on NetBSD-Users, with an additional comment tweak by me.
Summary from RVP:
1. Ignore SIGPIPE so that we're not killed in the middle of some
DB operation by a botched $PAGER:
$ env PAGER=/non-existent apropos -p ...
2. Return proper exit status in case of write errors:
$ apropos ... >/dev/full || echo fail
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions
