Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!hao!oddjob!mimsy!chris From: chris@mimsy.UUCP Newsgroups: comp.bugs.4bsd Subject: tsort returns random value to environment Message-ID: <8352@mimsy.UUCP> Date: Wed, 2-Sep-87 10:31:15 EDT Article-I.D.: mimsy.8352 Posted: Wed Sep 2 10:31:15 1987 Date-Received: Fri, 4-Sep-87 03:36:15 EDT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 28 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