- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
@@ -10,14 +10,15 @@
|
||||
/* an uninterruptable version of select. M.Z. Oct 2008 */
|
||||
|
||||
int uselect(int nfds,
|
||||
fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
|
||||
struct timeval *timeout) {
|
||||
fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
|
||||
struct timeval *timeout)
|
||||
{
|
||||
|
||||
sigset_t sigmask;
|
||||
struct timespec tmo, *tmoPtr;
|
||||
int result;
|
||||
char buffer[80];
|
||||
|
||||
|
||||
sigfillset(&sigmask);
|
||||
if (timeout) {
|
||||
tmo.tv_sec = timeout->tv_sec;
|
||||
@@ -28,7 +29,7 @@ int uselect(int nfds,
|
||||
}
|
||||
result = pselect(nfds, readfds, writefds, exceptfds, tmoPtr, &sigmask);
|
||||
if (result < 0 && errno == EINTR) {
|
||||
WriteToCommandLog("SYS>","pselect was interrupted!");
|
||||
WriteToCommandLog("SYS>", "pselect was interrupted!");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user