projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git]
/
ircd
/
engine_poll.c
diff --git
a/ircd/engine_poll.c
b/ircd/engine_poll.c
index b5ca2c7d498a622d5381683511cf469242ee9bf4..a166d4f2482d248730f3d38aaad79ce252114a78 100644
(file)
--- a/
ircd/engine_poll.c
+++ b/
ircd/engine_poll.c
@@
-263,7
+263,7
@@
engine_loop(struct Generators* gen)
/* Log the poll error */
log_write(LS_SOCKET, L_ERROR, 0, "poll() error: %m");
if (!errors++)
/* Log the poll error */
log_write(LS_SOCKET, L_ERROR, 0, "poll() error: %m");
if (!errors++)
- timer_add(
&clear_error
, error_clear, 0, TT_PERIODIC,
+ timer_add(
timer_init(&clear_error)
, error_clear, 0, TT_PERIODIC,
ERROR_EXPIRE_TIME);
else if (errors > POLL_ERROR_THRESHOLD) /* too many errors... */
server_restart("too many poll errors");
ERROR_EXPIRE_TIME);
else if (errors > POLL_ERROR_THRESHOLD) /* too many errors... */
server_restart("too many poll errors");