Bug 75426 - tcsetattr with TCSAFLUSH discards output buffer - should flush
Summary: tcsetattr with TCSAFLUSH discards output buffer - should flush
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: kernel
Version: 2.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Larry Woodman
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 69077
TreeView+ depends on / blocked
 
Reported: 2002-10-08 14:08 UTC by Matt Wilson
Modified: 2007-11-30 22:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-10-09 19:40:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to correct behavior (1.79 KB, patch)
2002-10-08 14:32 UTC, Matt Wilson
no flags Details | Diff

Description Matt Wilson 2002-10-08 14:08:08 UTC
POSIX states that if optional_actions includes the TCSAFLUSH flag "the change
shall occur after all output written to fildes is transmitted, and all input so
far received but not read shall be discarded before the change is made." 
Current kernel behavior flushes (discards) output when you call tcsetattr.

Comment 1 Matt Wilson 2002-10-08 14:32:16 UTC
Created attachment 79384 [details]
patch to correct behavior

Comment 2 Matt Wilson 2003-10-09 19:40:40 UTC
this was integrated in Update 2


Note You need to log in before you can comment on or make changes to this bug.