freebsd-skq/usr.bin/wc
bdrewery 7a3f5ce86a Fix SIGINFO race causing final results to be lost to stderr.
If a SIGINFO comes in after the file is read then the 'siginfo' flag is set to
1 and the next call to show_cnt() (at exit) would print the data to stderr
rather than the expected stdout.

This was found with spamming Poudriere with SIGINFO which caused a 'wc -l'
execution to return no data rather than an expected number.

MFC after:	2 weeks
2015-04-16 21:44:35 +00:00
..
Makefile
wc.1
wc.c Fix SIGINFO race causing final results to be lost to stderr. 2015-04-16 21:44:35 +00:00