mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
Do not cache fdopened fds on close.
This commit is contained in:
parent
3e6d5d7c77
commit
77afb82dc2
@ -1,3 +1,8 @@
|
|||||||
|
2002-01-27 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* iobuf.c (iobuf_fdopen, iobuf_sockopen): Do not cache fdopened
|
||||||
|
fds on close.
|
||||||
|
|
||||||
2002-01-08 Werner Koch <wk@gnupg.org>
|
2002-01-08 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* secmem.c (print_warn): Print a pointer to the FAQ.
|
* secmem.c (print_warn): Print a pointer to the FAQ.
|
||||||
|
@ -1097,7 +1097,7 @@ iobuf_fdopen( int fd, const char *mode )
|
|||||||
file_filter( fcx, IOBUFCTRL_INIT, NULL, NULL, &len );
|
file_filter( fcx, IOBUFCTRL_INIT, NULL, NULL, &len );
|
||||||
if( DBG_IOBUF )
|
if( DBG_IOBUF )
|
||||||
log_debug("iobuf-%d.%d: fdopen `%s'\n", a->no, a->subno, fcx->fname );
|
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;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1121,11 +1121,10 @@ iobuf_sockopen ( int fd, const char *mode )
|
|||||||
sock_filter( scx, IOBUFCTRL_INIT, NULL, NULL, &len );
|
sock_filter( scx, IOBUFCTRL_INIT, NULL, NULL, &len );
|
||||||
if( DBG_IOBUF )
|
if( DBG_IOBUF )
|
||||||
log_debug("iobuf-%d.%d: sockopen `%s'\n", a->no, a->subno, scx->fname);
|
log_debug("iobuf-%d.%d: sockopen `%s'\n", a->no, a->subno, scx->fname);
|
||||||
|
iobuf_ioctl (a,3,1,NULL); /* disable fd caching */
|
||||||
#else
|
#else
|
||||||
a = iobuf_fdopen (fd, mode);
|
a = iobuf_fdopen (fd, mode);
|
||||||
#endif
|
#endif
|
||||||
if (a)
|
|
||||||
iobuf_ioctl (a,3,1,NULL); /* disable fd caching */
|
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user