X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Ftdb.c;h=024b50258e7fc82b6e374e8ca402baa8be99df41;hb=9de3e97a61ecec98a465be8b518d2d7c1cbc7460;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 */