[Python-checkins] python/dist/src/Modules socketmodule.c, 1.300, 1.301

davecole at users.sourceforge.net davecole at users.sourceforge.net
Mon Aug 23 06:54:56 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2142/Modules

Modified Files:
	socketmodule.c 
Log Message:
Removed unnecessary calls to signal() to ignore SIGPIPE.  SIGPIPE is ignored
in initsigs() inside pythonrun.c.


Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.300
retrieving revision 1.301
diff -u -d -r1.300 -r1.301
--- socketmodule.c	9 Aug 2004 13:25:59 -0000	1.300
+++ socketmodule.c	23 Aug 2004 04:54:53 -0000	1.301
@@ -2515,11 +2515,6 @@
 		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 @@
 	/* 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 @@
 	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;
 }
 



More information about the Python-checkins mailing list