]> git.ipfire.org Git - thirdparty/mtr.git/commit
reliability: check writing to stdout and stderr was successful
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 18:17:32 +0000 (19:17 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 29 Aug 2016 18:22:50 +0000 (19:22 +0100)
commitac6dd7536f379fbb50b19175696d9ee6d5f2f0ad
tree480ede10f9b66487253e48a4ebcffe571594c0db
parent3fedf2e388842e75bbef4d9cc36e0e414f79f2f1
reliability: check writing to stdout and stderr was successful

This is expected behaviour.

$ mtr --help > /dev/full; echo $?
./mtr: write error: No space left on device
1

Earlier write errors returned successful zero.

Reference: https://www.irill.org/events/ghm-gnu-hackers-meeting/videos/jim-meyering-goodbye-world-the-perils-of-relying-on-output-streams-in-c
configure.ac
mtr.c
utils.c
utils.h