lkml.org 
[lkml]   [2000]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectUsing alarm() to break out of socket accept
From
Date
Hope somebody can help here:

We have code that uses an alarm() to routinely break ouf of a socket accept
and then perform some processing (check a flag) and then loop back around
to wait for a connection again. The code works fine on Solaris, HP-UX,,
AIX, and other flavours but not on RedHat 6.0.

I noticed that by default, SIGALRM is ignored so I unblocked it with
sigprocmask but we are still not getting the behaviour we require.

Is there something I am missing here?

Thanks

Adrian


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.073 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site