Don't leak descriptors to sendmail

This commit is contained in:
Miroslav Lichvar
2011-01-18 18:07:46 +01:00
parent 59c68d240c
commit 9d35b5deac
9 changed files with 38 additions and 0 deletions

3
util.h
View File

@@ -102,6 +102,9 @@ extern void UTI_TimevalHostToNetwork(struct timeval *src, Timeval *dest);
extern double UTI_FloatNetworkToHost(Float x);
extern Float UTI_FloatHostToNetwork(double x);
/* Set FD_CLOEXEC on descriptor */
extern void UTI_FdSetCloexec(int fd);
#if defined (INLINE_UTILITIES)
#define INLINE_STATIC inline static
#include "util.c"