From 6374763c985a36c25d3cea9a8a83b51f42708160 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 7 Sep 2006 15:13:33 +0000 Subject: Let scdaemon call a script on status changes --- common/exechelp.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common/exechelp.h') 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*/ -- cgit v1.2.3