diff options
author | David Shaw <[email protected]> | 2002-01-27 19:43:33 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-01-27 19:43:33 +0000 |
commit | 77afb82dc29b3dff48699f3c6adbe4bc82b8e104 (patch) | |
tree | 6aea57690358d6b220e0f911e27abae04d6856cb | |
parent | More comments about when to use IDEA in keygen.c (diff) | |
download | gnupg-77afb82dc29b3dff48699f3c6adbe4bc82b8e104.tar.gz gnupg-77afb82dc29b3dff48699f3c6adbe4bc82b8e104.zip |
Do not cache fdopened fds on close.
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/iobuf.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 606252b32..e63be8712 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2002-01-27 David Shaw <[email protected]> + + * iobuf.c (iobuf_fdopen, iobuf_sockopen): Do not cache fdopened + fds on close. + 2002-01-08 Werner Koch <[email protected]> * secmem.c (print_warn): Print a pointer to the FAQ. diff --git a/util/iobuf.c b/util/iobuf.c index 4d97607bf..dc4d019fe 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -1097,7 +1097,7 @@ iobuf_fdopen( int fd, const char *mode ) file_filter( fcx, IOBUFCTRL_INIT, NULL, NULL, &len ); if( DBG_IOBUF ) log_debug("iobuf-%d.%d: fdopen `%s'\n", a->no, a->subno, fcx->fname ); - + iobuf_ioctl (a,3,1,NULL); /* disable fd caching */ return a; } @@ -1121,11 +1121,10 @@ iobuf_sockopen ( int fd, const char *mode ) sock_filter( scx, IOBUFCTRL_INIT, NULL, NULL, &len ); if( DBG_IOBUF ) log_debug("iobuf-%d.%d: sockopen `%s'\n", a->no, a->subno, scx->fname); + iobuf_ioctl (a,3,1,NULL); /* disable fd caching */ #else a = iobuf_fdopen (fd, mode); #endif - if (a) - iobuf_ioctl (a,3,1,NULL); /* disable fd caching */ return a; } |