mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
More comments about when to use IDEA in keygen.c
When key signing with multiple keys at the same time, make sure each key gets the sigclass prompt Close the iobuf and FILE before trying to reap the child process to encourage the child to exit Disable cache-on-close of the fd iobuf (shouldn't all fd iobufs not be cached?)
This commit is contained in:
parent
fe78130ac7
commit
3e6d5d7c77
4 changed files with 31 additions and 8 deletions
15
g10/exec.c
15
g10/exec.c
|
@ -357,6 +357,9 @@ int exec_write(struct exec_info **info,const char *program,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
/* fd iobufs are cached?! */
|
||||
iobuf_ioctl((*info)->fromchild,3,1,NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* !EXEC_TEMPFILE_ONLY */
|
||||
|
@ -442,6 +445,12 @@ int exec_finish(struct exec_info *info)
|
|||
{
|
||||
int ret=info->progreturn;
|
||||
|
||||
if(info->fromchild)
|
||||
iobuf_close(info->fromchild);
|
||||
|
||||
if(info->tochild)
|
||||
fclose(info->tochild);
|
||||
|
||||
#ifndef EXEC_TEMPFILE_ONLY
|
||||
if(info->child>0)
|
||||
{
|
||||
|
@ -453,12 +462,6 @@ int exec_finish(struct exec_info *info)
|
|||
}
|
||||
#endif
|
||||
|
||||
if(info->fromchild)
|
||||
iobuf_close(info->fromchild);
|
||||
|
||||
if(info->tochild)
|
||||
fclose(info->tochild);
|
||||
|
||||
if(info->madedir && !info->keep_temp_files)
|
||||
{
|
||||
if(info->tempfile_in)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue