From jc@irbs.com  Wed Apr 26 09:04:46 1995
Received: from irbs.irbs.com (irbs.com [199.182.75.129])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA15288
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Apr 1995 09:04:44 -0700
Received: (from jc@localhost) by irbs.irbs.com (8.6.11/8.6.6) id MAA01894; Wed, 26 Apr 1995 12:04:40 -0400
Message-Id: <199504261604.MAA01894@irbs.irbs.com>
Date: Wed, 26 Apr 1995 12:04:40 -0400
From: John Capo <jc@irbs.com>
Reply-To: jc@irbs.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Interrupting man results in half-baked man page
X-Send-Pr-Version: 3.2

>Number:         364
>Category:       bin
>Synopsis:       Interrupting man results in half-baked man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 26 09:10:01 1995
>Closed-Date:    Wed Apr 26 09:19:52 PDT 1995
>Last-Modified:
>Originator:     John Capo
>Release:        FreeBSD 2.1-current i386
>Organization:
IRBS Engineering
>Environment:

	

>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.


*** gnu/usr.bin/man/man/man.c.orig	Tue Apr 11 22:09:32 1995
--- gnu/usr.bin/man/man/man.c	Wed Apr 26 11:50:16 1995
***************
*** 1063,1069 ****
  
        status = do_system_command (command);
  
!       if (!status) {
  	fprintf(stderr, "Failed.\n");
  	unlink(temp);
  	exit(1);
--- 1063,1069 ----
  
        status = do_system_command (command);
  
!       if (status <= 0) {
  	fprintf(stderr, "Failed.\n");
  	unlink(temp);
  	exit(1);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Wed Apr 26 09:19:52 PDT 1995 
State-Changed-Why:  
Applied the provided fix. 
>Unformatted:



