Date: Mon, 21 Dec 1998 19:28:37 -0800 (PST) From: Joseph Koshy <jkoshy> To: Michael Smith <msmith@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/truss main.c Message-ID: <199812220328.TAA12314@hub.freebsd.org> In-Reply-To: Your message of "Sun, 20 Dec 1998 22:34:50 PST." <199812210634.WAA23273@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> msmith 1998/12/20 22:34:50 PST > > Modified files: > usr.bin/truss main.c > Log: > Flush the output file before exiting; short-lived programs don't even fill > the stdio buffer. Shouldn't calling exit(3) flush open buffers before exiting? Returning from main() should be equivalent to calling exit(3). @@ -254,6 +254,7 @@ if (ioctl(Procfd, PIOCCONT, val) == -1) warn("PIOCCONT"); } while (pfs.why != S_EXIT); + fflush(outfile); if (sigexit) { if (sigexit == SIGQUIT) exit(sigexit); Thanks, Koshy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812220328.TAA12314>