]> git.ipfire.org Git - thirdparty/util-linux.git/commit
write: run atexit() checks at the end of execution
authorSami Kerola <kerolasa@iki.fi>
Sat, 7 May 2016 07:33:57 +0000 (08:33 +0100)
committerSami Kerola <kerolasa@iki.fi>
Fri, 1 Jul 2016 20:01:26 +0000 (21:01 +0100)
commit97ebab4ea82103ca17c23489041b24231bf24e2e
treee57b5195c128f99eb4c81edfc521772e853cf38d
parente4aaa0e5932e12671d209a5fcf60f4775b7820a8
write: run atexit() checks at the end of execution

Earlier use of _exit() caused program to terminate abnormally from atexit()
perspective and standard file descriptor close checks did not run resulting
to blindness if writes were successful, or not.  Easy fix is to avoid
running _exit() altogether.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/write.c