diff options
author | Werner Koch <[email protected]> | 2014-12-17 09:36:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-12-17 09:39:31 +0000 |
commit | 5cb6df8996623c00eaa2a39e3037101585442f7e (patch) | |
tree | 62b1d72a4e4302cc4a15a88f4fdd07d44c176799 /tools/gpgconf.c | |
parent | po: Update Japanese Translation. (diff) | |
download | gnupg-5cb6df8996623c00eaa2a39e3037101585442f7e.tar.gz gnupg-5cb6df8996623c00eaa2a39e3037101585442f7e.zip |
gpgconf: Exit with failure if --launch fails.
* tools/gpgconf-comp.c (gc_component_launch): Return an error code.
* tools/gpgconf.c (main): Exit if launch failed.
--
GnuPG-bug-id: 1791
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r-- | tools/gpgconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c index 31804f50e..423a66c71 100644 --- a/tools/gpgconf.c +++ b/tools/gpgconf.c @@ -281,9 +281,17 @@ main (int argc, char **argv) exit (1); } else if (cmd == aLaunch) - gc_component_launch (idx); + { + if (gc_component_launch (idx)) + exit (1); + } else - gc_component_kill (idx); + { + /* We don't error out if the kill failed because this + command should do nothing if the component is not + running. */ + gc_component_kill (idx); + } } break; |