[comp.bugs.4bsd] tsort returns random value to environment

chris@mimsy.UUCP (09/02/87)

Index:	usr.bin/tsort.c 4.3BSD Fix

Description:
	tsort has no exit or return from main, so returns a random
	value (actually that of the last fprintf).

Repeat-By:
	Install a SysV compatible printf; note that `make' in
	/usr/src/lib/libc no longer works.

Fix:
RCS file: RCS/tsort.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c2 -r1.1 -r1.2
*** /tmp/,RCSt1026249	Wed Sep  2 10:29:20 1987
--- /tmp/,RCSt2026249	Wed Sep  2 10:29:20 1987
***************
*** 84,87 ****
--- 84,88 ----
  		i->live = DEAD;
  	}
+ 	exit(0);
  }
  
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
Domain:	chris@mimsy.umd.edu	Path:	seismo!mimsy!chris