From owner-freebsd-threads@FreeBSD.ORG Fri Jan 4 12:08:50 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0DDA16A417 for ; Fri, 4 Jan 2008 12:08:50 +0000 (UTC) (envelope-from gofdt-freebsd-threads@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9688713C45A for ; Fri, 4 Jan 2008 12:08:50 +0000 (UTC) (envelope-from gofdt-freebsd-threads@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JAlLv-0005Am-J8 for freebsd-threads@freebsd.org; Fri, 04 Jan 2008 12:08:43 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jan 2008 12:08:43 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jan 2008 12:08:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-threads@freebsd.org From: Ivan Voras Date: Fri, 04 Jan 2008 13:08:30 +0100 Lines: 42 Message-ID: References: <20080104011821.GD76698@elvis.mu.org> <9bbcef730801040325y197aa7f6s134436dcc79d8aeb@mail.gmail.com> <20080104115927.GJ76698@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigED37D9FC0B1EBD04B33DB0C5" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.9 (X11/20070801) In-Reply-To: <20080104115927.GJ76698@elvis.mu.org> X-Enigmail-Version: 0.95.5 Sender: news Subject: Re: Threads and signals X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 12:08:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigED37D9FC0B1EBD04B33DB0C5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Alfred Perlstein wrote: > * Ivan Voras [080104 03:23] wrote: >> On 04/01/2008, Alfred Perlstein wrote: >> >>> You need to block/unblock signals or use sigwait. >>> >>> So basically your code will look something like: >>> defer_signals(); >> Interesting approach - should I also use it to ensure only one of the >> threads gets the signal? >=20 > Certainly. Hmm: :/usr/include> man defer_signals No manual entry for defer_signals :/usr/include> grep -r defer_signals * -nothing found Where is defer_signals() ? --------------enigED37D9FC0B1EBD04B33DB0C5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFHfiG/ldnAQVacBcgRAmQnAKCAD1V1Y3P/+vBoVw129QS0KM8RLwCfVyqx tKRUPMf3RHchyNEuvBI87xU= =oAPa -----END PGP SIGNATURE----- --------------enigED37D9FC0B1EBD04B33DB0C5--