[dovecot-cvs] dovecot/src/login-common master.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Sat Feb 8 16:16:13 EET 2003
Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv16821
Modified Files:
master.c
Log Message:
Show the fd we're sending to master if fd_send() fails.
Index: master.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/master.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- master.c 8 Feb 2003 08:07:31 -0000 1.2
+++ master.c 8 Feb 2003 14:16:11 -0000 1.3
@@ -44,7 +44,7 @@
if (fd_send(LOGIN_MASTER_SOCKET_FD,
client->fd, &req, sizeof(req)) != sizeof(req))
- i_fatal("fd_send() failed: %m");
+ i_fatal("fd_send(%d) failed: %m", client->fd);
client->master_callback = callback;
hash_insert(master_requests, POINTER_CAST(req.tag), client);
@@ -62,7 +62,7 @@
/* sending -1 as fd does the notification */
if (fd_send(LOGIN_MASTER_SOCKET_FD,
-1, &req, sizeof(req)) != sizeof(req))
- i_fatal("fd_send() failed: %m");
+ i_fatal("fd_send(-1) failed: %m");
}
void master_close(void)
More information about the dovecot-cvs
mailing list