| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Reply-To: | <jean DOT barata AT softeam DOT fr> |
| From: | "Jean Barata" <jean DOT barata AT softeam DOT fr> |
| To: | "'Cygwin Mailing List'" <Cygwin AT Sourceware DOT Cygnus DOT Com> |
| Subject: | Threads question |
| Date: | Tue, 4 Dec 2001 11:16:11 +0100 |
| Message-ID: | <000401c17cac$b36d2be0$a5054e0a@sorbonne> |
| MIME-Version: | 1.0 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |