mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: Egmont Koblinger <egmont@gmail.com>, Pavel Machek <pavel@ucw.cz>,
	Greg KH <gregkh@linuxfoundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: Data corruption when pasting large data to terminal
Date: Sun, 19 Feb 2012 21:35:03 +0000	[thread overview]
Message-ID: <20120219213503.00044fa7@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <20120219221412.1b6912ba@neptune.home>

> Well, not sure but the closing of ptmx on sender side should force kernel
> to flush whatever is remaining independently on end-of-line (I was
> thinking I should push an EOF over the ptmx instead of closing it before
> waiting for child process though I have not yet looked-up how to do so!).
> 

The behaviour for the master side on a close is to hangup the child.

You would normally wait for the child to exit first

  reply	other threads:[~2012-02-19 21:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAGWcZkJs2uQHM=7wmf1JOLmUeS3Mxo5L4arMuMQSez1mvJLKQA@mail.gmail.com>
2012-02-15 18:50 ` Egmont Koblinger
2012-02-15 23:30   ` Greg KH
2012-02-16  0:39     ` Egmont Koblinger
2012-02-16  0:54       ` Greg KH
2012-02-16  1:12         ` Egmont Koblinger
2012-02-17 19:28         ` Pavel Machek
2012-02-17 21:57           ` Bruno Prémont
2012-02-19 20:55             ` Egmont Koblinger
2012-02-19 21:14               ` Bruno Prémont
2012-02-19 21:35                 ` Alan Cox [this message]
2012-02-19 21:41                 ` Egmont Koblinger
2012-02-20 17:18                   ` Egmont Koblinger
2012-02-20 17:31                     ` Pavel Machek
2012-02-20 21:11                       ` Egmont Koblinger
2012-02-20 21:29                         ` Egmont Koblinger
2012-02-15 23:58   ` Parag Warudkar
2012-02-16  0:10     ` Greg KH
2012-02-16 11:42       ` Egmont Koblinger

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=20120219213503.00044fa7@pyramind.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=bonbons@linux-vserver.org \
    --cc=egmont@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /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

Powered by JetHome