Bug 75426

Summary: tcsetattr with TCSAFLUSH discards output buffer - should flush
Product: Red Hat Enterprise Linux 2.1 Reporter: Matt Wilson <msw>
Component: kernelAssignee: Larry Woodman <lwoodman>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-09 19:40:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 69077    
Attachments:
Description Flags
patch to correct behavior none

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