CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2015/03/17 01:32:21
Modified files: usr.bin/mandoc : main.c read.c Log message: When the user exits the pager before the pager has drained all input from man(1), man(1) dies from SIGPIPE. Exiting man(1) is fine in this case, generating more output would be pointless, but without handling SIGPIPE, the exit code from man(1) was wrong and csh(1) printed an ugly message "Broken pipe". Fix this by handling SIGPIPE explicitly. Issue noticed by deraadt@.