Bug 55981 - [PATCH]n_tty: recalc read-exit parameters if icanon changes
Summary: [PATCH]n_tty: recalc read-exit parameters if icanon changes
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Serial (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Russell King
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-30 15:06 UTC by Stas Sergeev
Modified: 2013-11-13 21:20 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.x
Subsystem:
Regression: No
Bisected commit-id:


Attachments
the fix (1.77 KB, patch)
2013-03-30 15:06 UTC, Stas Sergeev
Details | Diff

Description Stas Sergeev 2013-03-30 15:06:57 UTC
Created attachment 96681 [details]
the fix

If icanon changes while read() is sleeping, the exit parameters,
such as the timeouts and minimum number of chars to read, should
be re-calculated.
The problem is most prominent when pty master changes termios
between writes, while the reader is waiting for data on slave.

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