From: Tom H. <to...@co...> - 2011-02-10 14:16:02
|
On 10/02/11 14:10, ppmoore wrote: > The signal SIGALRM is handled in the main constructor for the application, > invoked from main(), so I thought that this should be sufficiently quick. > > if (signal(SIGALRM, &signalHandler) == SIG_ERR) > { > log_printf(LOG_ERR, "Signal when registering SIGALRM handler\n"); > return -1; > } The important question is not just where that is, but where the code that arranges for the SIGALRM to be sent is relative to that. It should be after that code not before it basically. > IS there a way top change the default signal-handling in valgrind? No, any more than there is any way to change the kernel's signal handling when you are running outside valgrind. Valgrind is only doing exactly what the kernel would normally do - the only difference is that your program is probably running more slowly because it is running under valgrind. Tom -- Tom Hughes (to...@co...) http://compton.nu/ |