public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "alexcastan at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/37785] printf without '\n' + sleep = problems with output buffer
Date: Thu, 09 Oct 2008 20:25:00 -0000	[thread overview]
Message-ID: <20081009202437.2831.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37785-16813@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from alexcastan at gmail dot com  2008-10-09 20:24 -------
Then the second problem it is also the normal behavior. The fork()
makes child inherit the unprinted parent buffer, then two similar buffers get
print later.

  10 9 8 7 6 5 4 3 2 1 0   I'm the child
  10 9 8 7 6 5 4 3 2 1 0   I'm the parent


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37785


      parent reply	other threads:[~2008-10-09 20:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 18:34 [Bug c/37785] New: printf " alexcastan at gmail dot com
2008-10-09 18:37 ` [Bug c/37785] printf without '\n' " paolo dot carlini at oracle dot com
2008-10-09 18:47 ` pinskia at gcc dot gnu dot org
2008-10-09 20:25 ` alexcastan at gmail dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081009202437.2831.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).