freebsd-skq/usr.bin/wc
Bryan Drewery 8ded906d2a 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 Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
wc.1 Separate references by a comma. 2014-11-06 16:19:21 +00:00
wc.c Fix SIGINFO race causing final results to be lost to stderr. 2015-04-16 21:44:35 +00:00