yes I would love to give that but fortunately the problem is solved. my executable was loading some .so and prior to that it was registering signal handler by signal system call. So probably when it used to load .so the signal handler for SIGINT was being overwritten by the code of some .so or it was switching to default handler.
By changing the position of signal system call in my exe ( By shifting it to some later point of execution) the problem gets resolved. Regards Nitin Arora On Tue, Nov 11, 2008 at 3:32 PM, Ravindra Patil <[EMAIL PROTECTED]>wrote: > Can you give snippet of testsprite_quit? > what exactly code is doing ? > > On 11/11/08, nitin <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I am trying to write a signal handler for Ctrl -C. > > > > In main I am registering my signal like this: > > > > signal(SIGINT, testsprite_quit); > > > > and handler is written in some other file which is declared as extern > > in my main file. > > But on pressing Ctrl - C its not getting called and the process is > > getting killed. > > What could be the issue, Please suggest. > > > > Regards > > Nitin Arora > > > > > > > > > > > -- > Thanks & Regards, > Ravindra M. Patil > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [EMAIL PROTECTED] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
