[753] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Trouble with sockets+signals and pthreads

daemon@ATHENA.MIT.EDU (cjs@iamerica.net)
Wed Feb 11 00:19:20 1998

From: "cjs@iamerica.net" <cjs2895@ns1.la-paz.org>
To: pthreads@MIT.EDU
Date: Tue, 10 Feb 1998 23:09:45 -0600 (CST)

Hey all! I hope there is still someone active on this list. I'm
getting the feeling that pthreads is no longer maintained. If thats
the case and anyone knows of a user mode posix threads package that is
being maintained, please let me know.

Anyway, my problem is that under pthreads if I have a thread writing
to a socket (the other end being a telnet process) and I press any of
the special characters (^C, ^D, ^Z) then the thread appears to hang,
though other threads continue to run.

I've tried ignoring SIGINT, SIGHUP, and SIGQUIT but it only seems to
effect the main thread. And I've tried treating the socket as a TTY
and setting it to RAW I/O mode, but tc[get/set]attr doesn't work on
sockets apparently. Anyone know whats up? This behavior doesn't occur
when I'm not using pthreads.

Christopher

home help back first fref pref prev next nref lref last post