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
Kirill Smelkov
linux
Commits
706e5455
Commit
706e5455
authored
Oct 03, 2002
by
Linus Torvalds
Committed by
Linus Torvalds
Oct 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sigio process lookup handling
parent
43f87443
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
fs/fcntl.c
fs/fcntl.c
+8
-4
No files found.
fs/fcntl.c
View file @
706e5455
...
...
@@ -481,8 +481,6 @@ static void send_sigio_to_task(struct task_struct *p,
void
send_sigio
(
struct
fown_struct
*
fown
,
int
fd
,
int
band
)
{
struct
task_struct
*
p
;
struct
list_head
*
l
;
struct
pid
*
pidptr
;
int
pid
;
read_lock
(
&
fown
->
lock
);
...
...
@@ -492,10 +490,13 @@ void send_sigio(struct fown_struct *fown, int fd, int band)
read_lock
(
&
tasklist_lock
);
if
(
pid
>
0
)
{
if
(
p
=
find_task_by_pid
(
pid
))
{
p
=
find_task_by_pid
(
pid
);
if
(
p
)
{
send_sigio_to_task
(
p
,
fown
,
fd
,
band
);
}
}
else
{
struct
list_head
*
l
;
struct
pid
*
pidptr
;
for_each_task_pid
(
-
pid
,
PIDTYPE_PGID
,
p
,
l
,
pidptr
)
{
send_sigio_to_task
(
p
,
fown
,
fd
,
band
);
}
...
...
@@ -526,10 +527,13 @@ int send_sigurg(struct fown_struct *fown)
read_lock
(
&
tasklist_lock
);
if
(
pid
>
0
)
{
if
(
p
=
find_task_by_pid
(
pid
))
{
p
=
find_task_by_pid
(
pid
);
if
(
p
)
{
send_sigurg_to_task
(
p
,
fown
);
}
}
else
{
struct
list_head
*
l
;
struct
pid
*
pidptr
;
for_each_task_pid
(
-
pid
,
PIDTYPE_PGID
,
p
,
l
,
pidptr
)
{
send_sigurg_to_task
(
p
,
fown
);
}
...
...
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