summaryrefslogtreecommitdiffabout
path: root/src/ctl.c
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 09:36:33 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-02-23 10:25:47 (GMT)
commit6e73a7b0822d1fd506c75a662070f447bba94afb (patch) (side-by-side diff)
treee121c440aff73316cb43ec05295e2c32492bf5dc /src/ctl.c
parent584266f8215d913ce0c226f63da51c77d1074f09 (diff)
downloadpies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.gz
pies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.bz2
Improve logging
* po/POTFILES.in: Add missing source files. * grecs: Upgrade. * src/diag.c (pies_diag_printer): New function. (logfuncall): New function. * src/pies.h: Add new prototypes. * src/pies.c (main): Initialize grecs_print_diag_fun * src/acl.c: Uniformly use double-quotes in messages. Use logfuncall where applicable. * src/comp.c: Likewise. * src/ctl.c: Likewise. * src/inetd-bi.c: Likewise. * src/inetd.c: Likewise. * src/limits.c: Likewise. * src/piesctl.c: Likewise. * src/progman.c: Likewise. * src/socket.c: Likewise. * src/sysvinit.c: Likewise.
Diffstat (limited to 'src/ctl.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/ctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ctl.c b/src/ctl.c
index 7d44cf1..fd7bfdc 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1245,7 +1245,7 @@ ctl_accept (int socket, void *data)
fd = accept (socket, (struct sockaddr*) &addr, &addrlen);
if (fd == -1)
{
- logmsg (LOG_ERR, _("accept failed: %s"), strerror (errno));
+ logfuncall ("accept", NULL, errno);
return 1;
}
@@ -1289,8 +1289,7 @@ ctl_open (void)
if (listen (fd, 8))
{
- logmsg (LOG_CRIT, _("can't listen on control socket %s: %s"),
- control.url->string, strerror (errno));
+ logfuncall ("listen", control.url->string, errno);
return -1;
}

Return to:

Send suggestions and report system problems to the System administrator.