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
1c5d4fe5
Commit
1c5d4fe5
authored
Oct 24, 2003
by
Andi Kleen
Committed by
David S. Miller
Oct 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Limit SO_BSDCOMPAT warning.
parent
16e02cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
net/core/sock.c
net/core/sock.c
+8
-2
No files found.
net/core/sock.c
View file @
1c5d4fe5
...
...
@@ -154,8 +154,14 @@ static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen)
static
void
sock_warn_obsolete_bsdism
(
const
char
*
name
)
{
printk
(
KERN_WARNING
"process `%s' is using obsolete "
"%s SO_BSDCOMPAT
\n
"
,
current
->
comm
,
name
);
static
int
warned
;
static
char
warncomm
[
16
];
if
(
strcmp
(
warncomm
,
current
->
comm
)
&&
warned
<
5
)
{
strcpy
(
warncomm
,
current
->
comm
);
printk
(
KERN_WARNING
"process `%s' is using obsolete "
"%s SO_BSDCOMPAT
\n
"
,
warncomm
,
name
);
warned
++
;
}
}
/*
...
...
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