X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Ftdb.c;h=024b50258e7fc82b6e374e8ca402baa8be99df41;hb=7e1b44a2e4d84f1564d6a4ac4baa43a8d189ae38;hp=c6498d651418545e33c4fa0509e203c62e80ddfc;hpb=f488cb944f033b385052d44b8e0846880e80b5db;p=ppp.git diff --git a/pppd/tdb.c b/pppd/tdb.c index c6498d6..024b502 100644 --- a/pppd/tdb.c +++ b/pppd/tdb.c @@ -1134,6 +1134,7 @@ TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags, if (tdb.fd == -1) { goto fail; } + (void) fcntl(tdb.fd, F_SETFD, FD_CLOEXEC); } /* ensure there is only one process initialising at once */