Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Jean Barata" To: "'Cygwin Mailing List'" Subject: Threads question Date: Tue, 4 Dec 2001 11:16:11 +0100 Message-ID: <000401c17cac$b36d2be0$a5054e0a@sorbonne> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Hi, I have a question: if I install a handler like this: void __coredump(int sig) { std::cerr << "stop" << std::endl; } int main(int argc, char *argv[]) { struct sigaction act; act.sa_handler = __coredump; sigaction(SIGSEGV, &act, NULL); /* ... */ /* then I launch a thread that will certainly make a segmentation fault */ /* ... */ return 0; } is the created thread supposed to inherits the handler ? or do I have to re-install it ? thanks. Jean Barata - SOFTEAM 01.30.12.18.67 - jean DOT barata AT softeam DOT fr -------------------------------------------- SOFTEAM Immeuble sesame 8 rue germain soufflot 78184 St Quentin en yvelines cedex -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/