Date: Mon, 28 Sep 1998 17:22:12 -0400 From: Brian Cully <shmit@kublai.com> To: current@FreeBSD.ORG Subject: recvfrom and multiple threads. Message-ID: <19980928172212.A307@kublai.com>
next in thread | raw e-mail | index | archive | help
I've done a little more poking around with my sigwait problem, and found another data point. If you'll recall, my program daemonizes, blocks all signals, opens a socket, spawns off a bunch of worker threads, and the main thread polls the results of sigwait() for user events. Inside of the worker thread, I call recvfrom() on the socket that was spawned in the master thread. That's where things break. If I replace the recvfrom() with a call to sleep() sigwait works just fine, but with the recvfrom() everything gets hosed. Am I wrong in thinking that multiple threads calling recvfrom() on the same socket should work (ala multiple processes calling recvfrom() on the same socket)? -- Brian Cully <shmit@rcn.com> ``And when one of our comrades was taken prisoner, blindfolded, hung upside-down, shot, and burned, we thought to ourselves, `These are the best experiences of our lives''' -Pathology (Joe Frank, Somewhere Out There) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980928172212.A307>