Close this PR:

>Number:         364
>Category:       bin
>Synopsis:       Interrupting man results in half-baked man page
>Description:

Interrupting man while it is waiting for the page to be formatted
results in a zero length file or a half-baked file.

>How-To-Repeat:

Inetrrupt man while it is formatting a page.

>Fix:

Pay more attention to the return value from the system command.
Submitted by:	John Capo <jc@irbs.com>
This commit is contained in:
Jordan K. Hubbard 1995-04-26 16:19:23 +00:00
parent f465ace952
commit 4b1e0d1665
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8088

View File

@ -1063,7 +1063,7 @@ make_cat_file (path, man_file, cat_file)
status = do_system_command (command);
if (!status) {
if (status <= 0) {
fprintf(stderr, "Failed.\n");
unlink(temp);
exit(1);