in reply to Re: Catching a signal causes my socket server to die
in thread Catching a signal causes my socket server to die

My understanding is that accept() returns on SIGALRM because it uses sleep() internally which uses SIGALRM in it's implementation - so you basically have two SIGALRM handlers. I had hoped that I could avoid this with SIGUSR1, but.... apparently not.
  • Comment on Re^2: Catching a signal causes my socket server to die

Replies are listed 'Best First'.
Re^3: Catching a signal causes my socket server to die
by ikegami (Patriarch) on Jan 08, 2009 at 01:29 UTC
    accept is a system call. It doesn't use sleep, a different system call. Mind you, both put the process in a sleep state, and both are reactive to signals. Any signals, not just ALRM.