Thread attributes are copied in pth_spawn() so it's safe to reuse the
commit8c087f026cbf0665be8625b55a19a968e4e50949
authorBen Kibbey <bjk@luxsci.net>
Sun, 11 Nov 2007 18:28:42 +0000 (11 13:28 -0500)
committerBen Kibbey <bjk@luxsci.net>
Sun, 11 Nov 2007 18:28:42 +0000 (11 13:28 -0500)
treebd59554badb3fe95f903e965d4e51028b1c44894
parent8a57f7cf97658833d8f0d69dc18684cdfbd01ed9
Thread attributes are copied in pth_spawn() so it's safe to reuse the
attr object.

Reset a connection thread priority to standard in socket_thread()
because threads inherit attributes.

Be nicer about terminating the socket_thread. Check for an exception
in the event and terminate the thread if theres an pth_accept() error.
This will occur when a terminating signal is sent which closes the
socket file descriptor.

Added xdump() to mem.c which shows not-freed pointers which is enabled
when DEBUG is defined.
src/mem.c
src/mem.h
src/pwmd.c