diff options
author | Werner Koch <wk@gnupg.org> | 2006-09-07 17:13:33 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-09-07 17:13:33 +0200 |
commit | 6374763c985a36c25d3cea9a8a83b51f42708160 (patch) | |
tree | 901f4d3762afff15b6adc1dc9f8c21b8b16be617 /common/exechelp.h | |
parent | Added missing file (diff) | |
download | gnupg2-6374763c985a36c25d3cea9a8a83b51f42708160.tar.xz gnupg2-6374763c985a36c25d3cea9a8a83b51f42708160.zip |
Let scdaemon call a script on status changes
Diffstat (limited to 'common/exechelp.h')
-rw-r--r-- | common/exechelp.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/exechelp.h b/common/exechelp.h index 1df029b7e..f78a43c6b 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -43,4 +43,16 @@ gpg_error_t gnupg_spawn_process (const char *pgmname, const char *argv[], gpg_error_t gnupg_wait_process (const char *pgmname, pid_t pid); +/* Spawn a new process and immediatley detach from it. The name of + the program to exec is PGMNAME and its arguments are in ARGV (the + programname is automatically passed as first argument). + Environment strings in ENVP are set. An error is returned if + pgmname is not executable; to make this work it is necessary to + provide an absolute file name. */ +gpg_error_t gnupg_spawn_process_detached (const char *pgmname, + const char *argv[], + const char *envp[] ); + + + #endif /*GNUPG_COMMON_EXECHELP_H*/ |