Awatmath.1885
net.bugs.4bsd
utcsrgv!utzoo!decvax!watmath!dmmartindale
Mon Mar  1 11:43:45 1982
bug in /bin/mail
If you have done a "biff y", you always get some kind of notice when
new mail arrives for you, but the first few lines of the message body
do not always appear (particularly when the system is busy).  The fix
is to move the "fclose(malf)" ahead a few lines in mail.c so that the
output buffer is flushed and written into your mailbox BEFORE sending
notification to /etc/comsat.

                                       Dave Martindale

diff $cmd/mail.c.old $cmd/mail.c
682,685c682,683
       f = open("/dev/mail", 1);
>       sprintf(buf, "%s@%d\n", name, ftell(malf));
686a685
>       fclose(malf);
691d689

<HR>
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
<P>
1. There is no money collected for the text(s) of the articles.
<BR>
2. The following notice remains appended to each copy:
<P>
<EM>The Usenet Oldnews Archive: Compilation Copyright&copy 1981, 1996
<BR> Bruce Jones, Henry Spencer, David Wiseman.</EM>
<P>
<HR>
Goto <A HREF="82.03.04_cornell.2618_net.bugs.4bsd.html">NEXT</A> article in NET.bugs.4bsd Newsgroup
<BR>Return to <A HREF="NET.bugs.4bsd-index.html">NET.bugs.4bsd index</A>
<BR>Return to the
       <A HREF="../index.html">Usenet Oldnews Archive index</A>
</HTML>

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.