X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=mon%2Fmons.c;fp=mon%2Fmons.c;h=cb70d3b7767622044483ac70331fcf5fdade3454;hp=f2e69c540f5f7d8e680d52b89f4b975e212445be;hb=fc7fb82d2661d977e7bacb4ffe469f3857a06b63;hpb=a4612791c1723e36d8447e0e2bf40c092515c37f diff --git a/mon/mons.c b/mon/mons.c index f2e69c5..cb70d3b 100644 --- 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; }