Re: Converting SIGSEGV etc. signals to exceptions

2011-08-20 Thread Paweł Sikora
On Saturday 20 of August 2011 14:51:44 sudhakar govindavajhala wrote: > Hi there, > > I am writing C++ code in Linux (2.6.18) using pthreads. glibc 2.5. gcc 4.1.2 > > 2) I would like to translate SIGSEGV or SIGFPE to an exception in the > program so that it can be caught at higher levels. Is th

Re: Converting SIGSEGV etc. signals to exceptions

2011-08-20 Thread Ian Lance Taylor
sudhakar govindavajhala writes: > I am writing C++ code in Linux (2.6.18) using pthreads. glibc 2.5. gcc 4.1.2 > > 1) I understand that signals SIGFPE and SIGSEGV are sent to individual > threads while SIGINT is sent to the whole process.  How do I find out > what signal is thread specific and wh