Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: utzoo!watmath!clyde!cbosgd!ihnp4!mhuxn!mhuxr!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: net.bugs.4bsd
Subject: "ptx" exits with 1 even when it succeeds
Message-ID: <2827@sun.uucp>
Date: Thu, 26-Sep-85 00:47:31 EDT
Article-I.D.: sun.2827
Posted: Thu Sep 26 00:47:31 1985
Date-Received: Sun, 29-Sep-85 04:41:36 EDT
Distribution: net
Organization: Sun Microsystems, Inc.
Lines: 34

Index:	usr.bin/ptx.c 4.2BSD

Description:
	"ptx" exits with an exit status of 1 even when it succeeds.
	This causes Makefiles using it to have problems.

Repeat-By:
	Inspect the code.

Fix:

*** /arch/4.2/usr/src/usr.bin/ptx.c	Tue Jun  8 21:06:58 1982
--- ./ptx.c	Mon Sep 23 14:36:34 1985
***************
*** 245,251
  
  
  	getsort();
! 	onintr();
  }
  
  msg(s,arg)

--- 245,252 -----
  
  
  	getsort();
! 	unlink(sortfile);
! 	exit(0);
  }
  
  msg(s,arg)

	Guy Harris