Mercurial > dovecot > core-2.2
changeset 1098:5a60e173fe9a HEAD
Print also the fd number if it fails.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 06 Feb 2003 04:31:31 +0200 |
parents | d42e2864dc3d |
children | cad379bd76d6 |
files | src/lib/fd-close-on-exec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/fd-close-on-exec.c Tue Feb 04 09:04:43 2003 +0200 +++ b/src/lib/fd-close-on-exec.c Thu Feb 06 04:31:31 2003 +0200 @@ -33,11 +33,11 @@ flags = fcntl(fd, F_GETFD, 0); if (flags < 0) - i_fatal("fcntl(F_GETFD) failed: %m"); + i_fatal("fcntl(F_GETFD, %d) failed: %m", fd); flags = set ? (flags | FD_CLOEXEC) : (flags & ~FD_CLOEXEC); if (fcntl(fd, F_SETFD, flags) < 0) - i_fatal("fcntl(F_SETFD) failed: %m"); + i_fatal("fcntl(F_SETFD, %d) failed: %m", fd); } void fd_debug_verify_leaks(int first_fd, int last_fd)