Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0fc85754
Commit
0fc85754
authored
Aug 23, 2004
by
Dave Cole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored
in initsigs() inside pythonrun.c.
parent
656f7e4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
Modules/socketmodule.c
Modules/socketmodule.c
+0
-13
No files found.
Modules/socketmodule.c
View file @
0fc85754
...
...
@@ -2515,11 +2515,6 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
return
-
1
;
}
init_sockobject
(
s
,
fd
,
family
,
type
,
proto
);
/* From now on, ignore SIGPIPE and let the error checking
do the work. */
#ifdef SIGPIPE
(
void
)
signal
(
SIGPIPE
,
SIG_IGN
);
#endif
return
0
;
...
...
@@ -3038,9 +3033,6 @@ socket_socketpair(PyObject *self, PyObject *args)
/* Create a pair of socket fds */
if
(
socketpair
(
family
,
type
,
proto
,
sv
)
<
0
)
return
set_error
();
#ifdef SIGPIPE
(
void
)
signal
(
SIGPIPE
,
SIG_IGN
);
#endif
s0
=
new_sockobject
(
sv
[
0
],
family
,
type
,
proto
);
if
(
s0
==
NULL
)
goto
finally
;
...
...
@@ -3091,11 +3083,6 @@ socket_fromfd(PyObject *self, PyObject *args)
if
(
fd
<
0
)
return
set_error
();
s
=
new_sockobject
(
fd
,
family
,
type
,
proto
);
/* From now on, ignore SIGPIPE and let the error checking
do the work. */
#ifdef SIGPIPE
(
void
)
signal
(
SIGPIPE
,
SIG_IGN
);
#endif
return
(
PyObject
*
)
s
;
}
...
...
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