diff options
author | Dave Cole <djc@object-craft.com.au> | 2004-08-23 04:54:53 (GMT) |
---|---|---|
committer | Dave Cole <djc@object-craft.com.au> | 2004-08-23 04:54:53 (GMT) |
commit | 0fc85754120bf6cd7d97894f48f37115490f46c6 (patch) | |
tree | 153a483d477b6d7b760ae7ecfd8dce76fd699e81 | |
parent | 656f7e4b408d0e97cf99c4faf35858915b93b8c6 (diff) | |
download | cpython-0fc85754120bf6cd7d97894f48f37115490f46c6.zip cpython-0fc85754120bf6cd7d97894f48f37115490f46c6.tar.gz cpython-0fc85754120bf6cd7d97894f48f37115490f46c6.tar.bz2 |
Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored
in initsigs() inside pythonrun.c.
-rw-r--r-- | Modules/socketmodule.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 8e1bc19..a9a7b00 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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; } |