From owner-freebsd-hackers Sun Oct 19 17:13:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA11203 for hackers-outgoing; Sun, 19 Oct 1997 17:13:53 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from gaia.coppe.ufrj.br ([146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA11198 for ; Sun, 19 Oct 1997 17:13:41 -0700 (PDT) (envelope-from jonny@coppe.ufrj.br) Received: (from jonny@localhost) by gaia.coppe.ufrj.br (8.8.7/8.8.7) id WAA14748; Sun, 19 Oct 1997 22:13:27 -0200 (EDT) (envelope-from jonny) From: Joao Carlos Mendes Luis Message-Id: <199710200013.WAA14748@gaia.coppe.ufrj.br> Subject: Re: PThread In-Reply-To: from George Tavares at "Oct 19, 97 08:47:46 pm" To: george@eps.ufsc.br (George Tavares) Date: Sun, 19 Oct 1997 22:13:27 -0200 (EDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk #define quoting(George Tavares) // I was using pthread (libc_r) packages I like to know if this // package is the same from MIT (MIT pthread). // When I running a pthread application, I press ^C and it doesn't // kill my application (running same program im Solaris it works). The // signals aren't passed to application? // Another think, how I know what function are MT-SAFE. I don't see // nothing about this in the man's. // Why it is not compiled in make world? Many bugs? One professor here at UFRJ had a program with pthreads that worked with Solaris and froze with FreeBSD. Even ^C did not break the running code. Only SIGKILL could stop it. I took a look at the program at it was simply a problem with not initialized pointers. Compile your code with -Wall and see if it helps. I think libc_r is not default because most applications do not need it and would waste CPU for nothing. Jonny PS: I really wonder how Solaris can run wrong code and do not complain at all... :) -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 jonny@coppe.ufrj.br Universidade Federal do Rio de Janeiro UFRJ/COPPE/CISI PGP fingerprint: 29 C0 50 B9 B6 3E 58 F2 83 5F E3 26 BF 0F EA 67