mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* keydb.h, getkey.c (get_user_id_native), import.c (import_one): Display
user ID while importing a key. Note this applies to both --import and keyserver --recv-keys. * exec.c (exec_finish): Log unnatural exit (core dump, killed manually, etc) for fork/exec/pipe child processes.
This commit is contained in:
parent
fc0d796503
commit
3bff7c1d60
5 changed files with 54 additions and 17 deletions
|
@ -394,6 +394,8 @@ int exec_write(struct exec_info **info,const char *program,
|
|||
args_in==NULL?program:shell,
|
||||
strerror(errno));
|
||||
|
||||
/* This mimics the POSIX sh behavior - 127 means "not found"
|
||||
from the shell. */
|
||||
if(errno==ENOENT)
|
||||
_exit(127);
|
||||
|
||||
|
@ -537,7 +539,10 @@ int exec_finish(struct exec_info *info)
|
|||
WIFEXITED(info->progreturn))
|
||||
ret=WEXITSTATUS(info->progreturn);
|
||||
else
|
||||
ret=127;
|
||||
{
|
||||
log_error(_("unnatural exit of external program\n"));
|
||||
ret=127;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue