Hi Devrat, Your code sort-of worked for me. Red Hat Linux Advanced Server 2.1, using GCC 3.2. C++ exceptions and setjmp/longjmp do not interact well. Likewise, I suspect that C++ exceptions and sigsetjmp also do not interact well. I recommend avoiding a throw from within the context of a signal handler. HTH, --Eljay