projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Log incoming IP address when accepting a connection
[trust_router.git]
/
mon
/
mons.c
diff --git
a/mon/mons.c
b/mon/mons.c
index
f2e69c5
..
cb70d3b
100644
(file)
--- a/
mon/mons.c
+++ b/
mon/mons.c
@@
-225,8
+225,8
@@
int mons_accept(MONS_INSTANCE *mons, int listen)
int conn=-1;
int pid=-1;
- if (0 > (conn =
accept(listen, NULL, NULL
))) {
-
perror("Error from monitoring interface accept()
");
+ if (0 > (conn =
tr_sock_accept(listen
))) {
+
tr_err("mons_accept: Error accepting connection
");
return 1;
}