From 131312c0d64ef051c53888e1373ee73402f389b9 Mon Sep 17 00:00:00 2001 From: msmith Date: Mon, 21 Dec 1998 06:34:50 +0000 Subject: Flush the output file before exiting; short-lived programs don't even fill the stdio buffer. --- usr.bin/truss/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c index 427130c..b82db46 100644 --- a/usr.bin/truss/main.c +++ b/usr.bin/truss/main.c @@ -31,7 +31,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.11 1998/09/07 05:49:43 sef Exp $"; + "$Id: main.c,v 1.12 1998/10/03 00:43:05 sef Exp $"; #endif /* not lint */ /* @@ -254,6 +254,7 @@ main(int ac, char **av) { if (ioctl(Procfd, PIOCCONT, val) == -1) warn("PIOCCONT"); } while (pfs.why != S_EXIT); + fflush(outfile); if (sigexit) { if (sigexit == SIGQUIT) exit(sigexit); -- cgit v1.1