Date: Mon, 21 Dec 1998 19:50:19 -0800 From: Mike Smith <mike@smith.net.au> To: Joseph Koshy <jkoshy@hub.freebsd.org> Cc: Michael Smith <msmith@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.bin/truss main.c Message-ID: <199812220350.TAA02688@dingo.cdrom.com> In-Reply-To: Your message of "Mon, 21 Dec 1998 19:28:37 PST." <199812220328.TAA12314@hub.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).
Truss doesn't return from main() in the case where the child is killed
by a fatal signal; it kills itself with the same signal.
>
> @@ -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
>
>
>
>
--
\\ Sometimes you're ahead, \\ Mike Smith
\\ sometimes you're behind. \\ mike@smith.net.au
\\ The race is long, and in the \\ msmith@freebsd.org
\\ end it's only with yourself. \\ msmith@cdrom.com
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?199812220350.TAA02688>
