Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
acef5f85
Commit
acef5f85
authored
Oct 07, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] TTY_DO_WRITE_WAKEUP
As per comment..
parent
6d9463ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/char/pty.c
drivers/char/pty.c
+6
-0
No files found.
drivers/char/pty.c
View file @
acef5f85
...
...
@@ -5,6 +5,10 @@
*
* Added support for a Unix98-style ptmx device.
* -- C. Scott Ananian <cananian@alumni.princeton.edu>, 14-Jan-1998
* Added TTY_DO_WRITE_WAKEUP to enable n_tty to send POLL_OUT to
* waiting writers -- Sapan Bhatia <sapan@corewars.org>
*
*
*/
#include <linux/config.h>
...
...
@@ -329,6 +333,8 @@ static int pty_open(struct tty_struct *tty, struct file * filp)
clear_bit
(
TTY_OTHER_CLOSED
,
&
tty
->
link
->
flags
);
wake_up_interruptible
(
&
pty
->
open_wait
);
set_bit
(
TTY_THROTTLED
,
&
tty
->
flags
);
set_bit
(
TTY_DO_WRITE_WAKEUP
,
&
tty
->
flags
);
/* Register a slave for the master */
if
(
tty
->
driver
.
major
==
PTY_MASTER_MAJOR
)
tty_register_devfs
(
&
tty
->
link
->
driver
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment