D
David Hilton
I'm working on some legacy code, and I ran across this function that
is giving the compiler issues:
void socket_skip(int i,int code,struct sigcontext * scp) {
fprintf(stderr,"User requested an interupt\n");
signal(SIGINT,exit);
sleep(1);
signal(SIGINT,socket_skip);
return;
}
Not surprisingly, signal doesn't like socket_skip.
I have searched for any sort of #define that could have specified a
unique signal, I have read through most of the possibly relevant lines
(by running 'grep sig `locate signal.h` | less').
Does anyone know of a good way to search for (possibly obfuscated)
method signatures?
How about any other way of finding what I'm looking for?
Short of that, does anyone know what library might have a signal that
accepts that signature?
Thanks,
David
is giving the compiler issues:
void socket_skip(int i,int code,struct sigcontext * scp) {
fprintf(stderr,"User requested an interupt\n");
signal(SIGINT,exit);
sleep(1);
signal(SIGINT,socket_skip);
return;
}
Not surprisingly, signal doesn't like socket_skip.
I have searched for any sort of #define that could have specified a
unique signal, I have read through most of the possibly relevant lines
(by running 'grep sig `locate signal.h` | less').
Does anyone know of a good way to search for (possibly obfuscated)
method signatures?
How about any other way of finding what I'm looking for?
Short of that, does anyone know what library might have a signal that
accepts that signature?
Thanks,
David