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
b84c5126
Commit
b84c5126
authored
Jul 08, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.5-serial
into home.osdl.org:/home/torvalds/v2.5/linux
parents
ddc5d5ef
b607fe3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/serial/core.c
drivers/serial/core.c
+2
-4
No files found.
drivers/serial/core.c
View file @
b84c5126
...
@@ -1490,8 +1490,7 @@ uart_block_til_ready(struct file *filp, struct uart_state *state)
...
@@ -1490,8 +1490,7 @@ uart_block_til_ready(struct file *filp, struct uart_state *state)
return
-
ERESTARTSYS
;
return
-
ERESTARTSYS
;
if
(
!
info
->
tty
||
tty_hung_up_p
(
filp
))
if
(
!
info
->
tty
||
tty_hung_up_p
(
filp
))
return
(
port
->
flags
&
UPF_HUP_NOTIFY
)
?
return
-
EAGAIN
;
-
EAGAIN
:
-
ERESTARTSYS
;
return
0
;
return
0
;
}
}
...
@@ -1596,8 +1595,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
...
@@ -1596,8 +1595,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
* If the port is in the middle of closing, bail out now.
* If the port is in the middle of closing, bail out now.
*/
*/
if
(
tty_hung_up_p
(
filp
))
{
if
(
tty_hung_up_p
(
filp
))
{
retval
=
(
state
->
port
->
flags
&
UPF_HUP_NOTIFY
)
?
retval
=
-
EAGAIN
;
-
EAGAIN
:
-
ERESTARTSYS
;
state
->
count
--
;
state
->
count
--
;
up
(
&
state
->
sem
);
up
(
&
state
->
sem
);
goto
fail
;
goto
fail
;
...
...
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