Date: Wed, 24 Jan 2001 16:05:33 +0100 (CET) From: <ema@west.se> To: Jason Evans <jasone@canonware.com> Cc: <freebsd-smp@FreeBSD.ORG> Subject: Re: Bug (?) with sockets/pthreads/freebsd4.2-stable Message-ID: <Pine.LNX.4.30.0101241601590.1222-100000@grumpy.west.se> In-Reply-To: <20010124013507.K69199@canonware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Jan 2001, Jason Evans wrote: > Here's a snippet of code from a library I wrote that does precisely what > you're doing: > > /* > * Ignore SIGPIPE, so that writing to a closed socket > * won't crash the program. > */ > signal(SIGPIPE, SIG_IGN); > > This code is executed by the initial thread. > > It works for me... Unfortunately it doesnt for me, as Ive littered the code with signal(..) before it hangs but it still throws a SIGPIPE at the program. Ive tried executing in each pthread's method and in the main(). With no success. I had no problem with the SIGPIPE signal when using it in one process, but now when with the pthreads, they still missbehave. //Erik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.30.0101241601590.1222-100000>