diff options
author | Werner Koch <[email protected]> | 2015-09-28 16:10:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-09-28 16:40:38 +0000 |
commit | 83811e3f1f0c615b2b63bafdb49a35a0fc198088 (patch) | |
tree | 676f6c145331d2911969ad01db7fcea6f6132c80 /common/exechelp-w32ce.c | |
parent | scd: Handle error correctly. (diff) | |
download | gnupg-83811e3f1f0c615b2b63bafdb49a35a0fc198088.tar.gz gnupg-83811e3f1f0c615b2b63bafdb49a35a0fc198088.zip |
common: Change calling convention for gnupg_spawn_process.
* common/exechelp.h (GNUPG_SPAWN_NONBLOCK): New.
(GNUPG_SPAWN_RUN_ASFW, GNUPG_SPAWN_DETACHED): Macro to replace the
numbers.
* common/exechelp.h (gnupg_spawn_process): Change function to not take
an optional stream for stdin but to return one.
* common/exechelp-posix.c (gnupg_spawn_process): Implement change.
(create_pipe_and_estream): Add args outbound and nonblock.
* common/exechelp-w32.c (gnupg_spawn_process): Implement change.
--
In 2.1 this function is only used at one place and the stdin parameter
is not used. Thus this change is trivial for the callers but along
with estream's new es_poll it is overall simpler to use.
Note that the Windows version has not been tested.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/exechelp-w32ce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/exechelp-w32ce.c b/common/exechelp-w32ce.c index cca55c8ce..975386a13 100644 --- a/common/exechelp-w32ce.c +++ b/common/exechelp-w32ce.c @@ -502,7 +502,7 @@ gpg_error_t gnupg_spawn_process (const char *pgmname, const char *argv[], gpg_err_source_t errsource, void (*preexec)(void), unsigned int flags, - estream_t infp, + estream_t *r_infp, estream_t *r_outfp, estream_t *r_errfp, pid_t *pid) |