[net.bugs.4bsd] "ptx" exits with 1 even when it succeeds

guy@sun.uucp (Guy Harris) (09/26/85)

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