Okay, thanks to everyone who answered my last post - now for a new one.
Signal handling in SYSV - what is the correct way to reset the signal handler
after it has been called. I tried resetting it as the first thing when the
handler is called i.e.
foobar(sig)
int sig;
{
signal(SIGALRM, foobar);
blah
But this didn't seem to work (segmentation fault).Quote:}
I then found a piece of code which does this...
foobar(sig)
int sig;
{
signal(SIGALRM, SIG_IGN);
blah
signal(SIGALRM, foobar);
I think this works, but my de*s crappy and I'm getting errors, so I'm notQuote:}
sure. (it's not my code!)
Any suggestions?
Neil Cook.