From e9fad52a8d32ab476263c614870c732743eb3e73 Mon Sep 17 00:00:00 2001 From: Stefan Bellon Date: Wed, 2 Jan 2002 17:50:37 +0000 Subject: invalidate close cache --- g10/exec.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/g10/exec.c b/g10/exec.c index 840b70307..55a808546 100644 --- a/g10/exec.c +++ b/g10/exec.c @@ -447,12 +447,17 @@ int exec_finish(struct exec_info *info) } #endif - if(info->fromchild) + if(info->fromchild) { iobuf_close(info->fromchild); +#ifdef __riscos__ + /* invalidate close cache, as otherwise unlink() below won't work */ + iobuf_ioctl(NULL, 2, 0, info->tempfile_out); +#endif + } if(info->tochild) fclose(info->tochild); - + if(info->madedir && !info->keep_temp_files) { if(info->tempfile_in) -- cgit v1.2.3