mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
common/exechelp: Mute the Windows version.
* common/exechelp-w32.c (gnupg_wait_process): Do not print an error if the exit code can be returned. This makes the Windows version behave like the POSIX version. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
709e2a7e9a
commit
54acc87c1e
@ -713,9 +713,10 @@ gnupg_wait_process (const char *pgmname, pid_t pid, int hang, int *r_exitcode)
|
|||||||
}
|
}
|
||||||
else if (exc)
|
else if (exc)
|
||||||
{
|
{
|
||||||
log_error (_("error running '%s': exit status %d\n"),
|
if (!r_exitcode)
|
||||||
pgmname, (int)exc );
|
log_error (_("error running '%s': exit status %d\n"),
|
||||||
if (r_exitcode)
|
pgmname, (int)exc);
|
||||||
|
else
|
||||||
*r_exitcode = (int)exc;
|
*r_exitcode = (int)exc;
|
||||||
ec = GPG_ERR_GENERAL;
|
ec = GPG_ERR_GENERAL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user