summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-12-21 06:34:50 +0000
committermsmith <msmith@FreeBSD.org>1998-12-21 06:34:50 +0000
commit131312c0d64ef051c53888e1373ee73402f389b9 (patch)
tree6023715c38e28c390c007daabdf79d755a571dd2 /usr.bin/truss
parentff7a143fe07e3c74e46dc6c80e5a47e758c6200d (diff)
downloadFreeBSD-src-131312c0d64ef051c53888e1373ee73402f389b9.zip
FreeBSD-src-131312c0d64ef051c53888e1373ee73402f389b9.tar.gz
Flush the output file before exiting; short-lived programs don't even fill
the stdio buffer.
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/main.c3
1 files changed, 2 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud