version 1.38, 2009/09/18 15:19:27 |
version 1.39, 2009/09/20 14:58:12 |
|
|
case -1: |
case -1: |
if (errno == ECHILD) |
if (errno == ECHILD) |
return; |
return; |
fatal("waitpid"); |
fatal("waitpid failed"); |
case 0: |
case 0: |
return; |
return; |
} |
} |
|
|
s = c->session; |
s = c->session; |
|
|
if (gettimeofday(&tv, NULL) != 0) |
if (gettimeofday(&tv, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday failed"); |
|
|
if (c->flags & CLIENT_IDENTIFY && timercmp(&tv, &c->identify_timer, >)) |
if (c->flags & CLIENT_IDENTIFY && timercmp(&tv, &c->identify_timer, >)) |
server_clear_identify(c); |
server_clear_identify(c); |
|
|
xtimeout = options_get_number(&c->session->options, "repeat-time"); |
xtimeout = options_get_number(&c->session->options, "repeat-time"); |
if (xtimeout != 0 && c->flags & CLIENT_REPEAT) { |
if (xtimeout != 0 && c->flags & CLIENT_REPEAT) { |
if (gettimeofday(&tv, NULL) != 0) |
if (gettimeofday(&tv, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday failed"); |
if (timercmp(&tv, &c->repeat_timer, >)) |
if (timercmp(&tv, &c->repeat_timer, >)) |
c->flags &= ~(CLIENT_PREFIX|CLIENT_REPEAT); |
c->flags &= ~(CLIENT_PREFIX|CLIENT_REPEAT); |
} |
} |
|
|
tv.tv_sec = xtimeout / 1000; |
tv.tv_sec = xtimeout / 1000; |
tv.tv_usec = (xtimeout % 1000) * 1000L; |
tv.tv_usec = (xtimeout % 1000) * 1000L; |
if (gettimeofday(&c->repeat_timer, NULL) != 0) |
if (gettimeofday(&c->repeat_timer, NULL) != 0) |
fatal("gettimeofday"); |
fatal("gettimeofday failed"); |
timeradd(&c->repeat_timer, &tv, &c->repeat_timer); |
timeradd(&c->repeat_timer, &tv, &c->repeat_timer); |
} |
} |
|
|