[dovecot-cvs] dovecot/src/lib fd-close-on-exec.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Thu Feb 6 04:31:34 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv13896
Modified Files:
fd-close-on-exec.c
Log Message:
Print also the fd number if it fails.
Index: fd-close-on-exec.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/fd-close-on-exec.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- fd-close-on-exec.c 1 Dec 2002 15:58:36 -0000 1.2
+++ fd-close-on-exec.c 6 Feb 2003 02:31:31 -0000 1.3
@@ -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)
More information about the dovecot-cvs
mailing list