Another bulky set of minor changes.

Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
This commit is contained in:
Guido van Rossum 1995-01-02 19:30:30 +00:00
parent 437a0e60ba
commit 3bbc62e9c2
18 changed files with 222 additions and 85 deletions

View file

@ -22,7 +22,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
/* Signal module -- many thanks to Lance Ellinghouse */
/* Signal module -- many thanks to Lance Ellinghaus */
#include "Python.h"
#include "intrcheck.h"
@ -34,6 +34,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define SIG_ERR ((RETSIGTYPE (*)())-1)
#endif
#ifndef NSIG
#define NSIG (_SIGMAX + 1) /* For QNX */
#endif
/*
NOTES ON THE INTERACTION BETWEEN SIGNALS AND THREADS
@ -119,7 +124,6 @@ PySignal_Alarm(self, args)
PyObject *args;
{
int t;
int rtn;
if (!PyArg_Parse(args, "i", &t))
return (PyObject *)NULL;
/* alarm() returns the number of seconds remaining */
@ -218,7 +222,6 @@ void
initsignal()
{
PyObject *m, *d, *x;
PyObject *b_dict;
int i;
#ifdef WITH_THREAD